You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gdavison
added
bug
Addresses a defect in current functionality.
and removed
needs-triage
Waiting for first response or review from a maintainer.
labels
Jul 27, 2022
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
while creating a S3 bucket using terraform, if that bucket already exists we are facing an weird issue
Current Scenario:
S3 bucket :- "test-rishabh-111"
This bucket was created via terraform different product about 1 year ago
When created the same bucket via Terraform using below code
resource "aws_s3_bucket" "test_bucket" {
bucket = "test-rishabh-111"
}
-----Terraform Apply-------------
$ terraform13 apply --auto-approve
aws_s3_bucket.test_bucket: Creating...
aws_s3_bucket.test_bucket: Still creating... [10s elapsed]
aws_s3_bucket.test_bucket: Still creating... [20s elapsed]
aws_s3_bucket.test_bucket: Creation complete after 22s [id=test-rishabh-111]
Terraform says it has been successfully created . and adds this resources in the state also.
Expected Behavior
This should have given the error that bucket already exist , at least should not have include the resource under the state.
Now the same resource is managed by the two different states.
If i delete any tf resource it will delete the s3 bucket also.
Terraform Version Details:
AWS Provider :- 3.75.1
Terraform Version : 0.13.6
The text was updated successfully, but these errors were encountered: