Skip to content

Commit

Permalink
Update s3.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
kariemoorman committed Apr 26, 2024
1 parent 246cd94 commit 266616c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tf/step2_cf-only/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,21 @@ resource "aws_s3_bucket" "log_bucket" {
bucket = "tf-log-bucket"
}

# Add ACL
resource "aws_s3_bucket_acl" "log_bucket_acl" {
bucket = aws_s3_bucket.log_bucket.id
acl = "log-delivery-write"
}

# Add versioning
resource "aws_s3_bucket_versioning" "log_bucket_versioning" {
bucket = aws_s3_bucket.log_bucket.id

versioning_configuration {
status = "Enabled"
}
}

# Add logging
resource "aws_s3_bucket_logging" "s3log" {
bucket = aws_s3_bucket.week1-bucket.id
Expand Down

0 comments on commit 266616c

Please sign in to comment.