Skip to content

Commit

Permalink
- ignore common/README.md
Browse files Browse the repository at this point in the history
- do not create aws_s3_bucket_acl if bucket_owner is enforced
  • Loading branch information
badra001 committed Mar 25, 2022
1 parent 88e5b1c commit dd128b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,7 @@ This works with the Terraform AWS provider 4.x, released 2022-02.
* 3.0.1 -- 2022-03-24
- kms_key
- wrap aws_kms_key resouce in try()

* 3.0.2 -- 2022-03-25
- common/resource.tf
- do not create aws_s3_bucket_acl if bucket_owner is set to enforced
1 change: 1 addition & 0 deletions common/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
2 changes: 2 additions & 0 deletions common/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,10 @@ data "template_file" "policy" {

#---
# s3 bucket refactor: acl
# if bucket_owner == BucketOwnerEnforced, ACLs cannot be set to private, so do not use this
#---
resource "aws_s3_bucket_acl" "this" {
count = var.bucket_owner == "BucketOwnerEnforced" ? 0 : 1
bucket = aws_s3_bucket.this.id
acl = "private"
}
Expand Down
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "3.0.1"
_module_version = "3.0.2"
}

0 comments on commit dd128b6

Please sign in to comment.