Loading...
Loading...
### Terraform Version ```shell Terraform v1.11.4 on darwin_arm64 ``` ### Terraform Configuration Files ```terraform resource "aws_s3_bucket_policy" "logs-elb" { bucket = aws_s3_bucket.logs-s3.bucket policy = jsonencode({ **ALLOW** }) } resource "aws_s3_bucket_policy" "logs-elb-essentials" { bucket = aws_s3_bucket.logs-s3.bucket policy = jsonencode({ **DENY** }) ``` ### Debug Output N/A ### Expected Behavior Terraform should not allow to define two resources with different names which refer one actual resource. ### Actual Behavior Terraform allows to define two resources with different names and different configuration which refers the same actual resource. Depending on the order which one configuration is processed first the **DENY** or **ALLOW** policy is applied!! ### Steps to Reproduce 1. Create configuration as described 2. terraform plan 3. terraform apply ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.