Skip to content

Commit

Permalink
* 2.5.4 -- 2024-02-16
Browse files Browse the repository at this point in the history
  - terraform-state
    - a resource set to count=0 with no acl was failing; remove the resource (comment)
  • Loading branch information
badra001 committed Feb 16, 2024
1 parent a706d1b commit 0698e5c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,3 +342,7 @@
* 2.5.3 -- 2024-02-09
- s3-config-org
- update key policy, sns permissions to allow s3 -> sns -> sqs

* 2.5.4 -- 2024-02-16
- terraform-state
- a resource set to count=0 with no acl was failing; remove the resource (comment)
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 = "2.5.3"
_module_version = "2.5.4"
}
1 change: 0 additions & 1 deletion terraform-state/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ No modules.
| [aws_kms_alias.tfstate_key](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_alias) | resource |
| [aws_kms_key.tfstate_key](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key) | resource |
| [aws_s3_bucket.tfstate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket) | resource |
| [aws_s3_bucket_acl.tfstate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_acl) | resource |
| [aws_s3_bucket_ownership_controls.tfstate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_ownership_controls) | resource |
| [aws_s3_bucket_public_access_block.tfstate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block) | resource |
| [aws_s3_bucket_server_side_encryption_configuration.tfstate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_server_side_encryption_configuration) | resource |
Expand Down
13 changes: 7 additions & 6 deletions terraform-state/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,13 @@ resource "aws_s3_bucket_ownership_controls" "tfstate" {
}
}

resource "aws_s3_bucket_acl" "tfstate" {
# count = var.bucket_owner == "BucketOwnerEnforced" ? 0 : 1
count = 0
bucket = aws_s3_bucket.tfstate.id
# acl = "private"
}
# this is disabled but it's failing without acl. We will simply comment it for now
## resource "aws_s3_bucket_acl" "tfstate" {
## # count = var.bucket_owner == "BucketOwnerEnforced" ? 0 : 1
## count = 0
## bucket = aws_s3_bucket.tfstate.id
## # acl = "private"
## }

#---
# kms
Expand Down

0 comments on commit 0698e5c

Please sign in to comment.