Skip to content

Commit

Permalink
Terraform format
Browse files Browse the repository at this point in the history
  • Loading branch information
bensewell committed Nov 23, 2023
1 parent 4e8b4cc commit 1eeccbf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/statics-deploy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ resource "aws_s3_bucket_ownership_controls" "static_upload" {
bucket = aws_s3_bucket.static_upload.id
rule {
object_ownership = "BucketOwnerPreferred"

}
}

resource "aws_s3_bucket_acl" "static_upload" {
depends_on = [aws_s3_bucket_ownership_controls.static_upload]
bucket = aws_s3_bucket.static_upload.id
acl = "private"
bucket = aws_s3_bucket.static_upload.id
acl = "private"
}

resource "aws_s3_bucket_notification" "on_create" {
Expand Down Expand Up @@ -57,8 +57,8 @@ resource "aws_s3_bucket_ownership_controls" "static_deploy" {

resource "aws_s3_bucket_acl" "static_deploy" {
depends_on = [aws_s3_bucket_ownership_controls.static_deploy]
bucket = aws_s3_bucket.static_deploy.id
acl = "private"
bucket = aws_s3_bucket.static_deploy.id
acl = "private"
}

# CloudFront permissions for the bucket
Expand Down

0 comments on commit 1eeccbf

Please sign in to comment.