Skip to content

Commit c13d586

Browse files
Update s3.tf
1 parent 98b35a1 commit c13d586

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

s3.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,19 @@ resource "aws_s3_bucket_versioning" "this" {
3737
status = "Enabled"
3838
}
3939
}
40+
41+
resource "aws_s3_bucket" "log_bucket" {
42+
bucket = "log_bucket"
43+
}
44+
45+
resource "aws_s3_bucket_acl" "log_bucket_acl" {
46+
bucket = aws_s3_bucket.log_bucket.id
47+
acl = "log-delivery-write"
48+
}
49+
50+
resource "aws_s3_bucket_logging" "this" {
51+
bucket = aws_s3_bucket.this.id
52+
53+
target_bucket = aws_s3_bucket.log_bucket.id
54+
target_prefix = "log/"
55+
}

0 commit comments

Comments
 (0)