aws_s3_bucket resources with same name are not emitting "bucket already exists" errors #25622
Labels
bug
Addresses a defect in current functionality.
service/s3
Issues and PRs that pertain to the s3 service.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
N/A
Panic Output
N/A
Expected Behavior
I start off by only having resource "first" in the file and run a terraform apply. After this successfully runs, I add resource "second" to the file with the same exact bucket name. Then I run a terraform apply. This should fail with a bucket name already exists error.
Actual Behavior
After adding resource "second" to the file and running a terraform apply, it runs to completion saying that it created resource "second" even though the bucket already existed and was deployed through resource "first".
Steps to Reproduce
terraform apply
terraform apply
Important Factoids
N/A
References
N/A
The text was updated successfully, but these errors were encountered: