Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple aws_s3_bucket with the same bucket name does not generate an error #10085

Closed
jleclanche opened this issue Nov 13, 2016 · 2 comments
Closed

Comments

@jleclanche
Copy link

terraform 0.7.10

I had the following typo'd configuration:

resource "aws_s3_bucket" "example_org_bucket" {
	bucket = "example.org"
	website {
		redirect_all_requests_to = "https://example.net"
	}
}

resource "aws_s3_bucket" "www_example_org_bucket" {
	bucket = "example.org"
	website {
		redirect_all_requests_to = "https://example.net"
	}
}

Terraform did not complain (and even proceeded to do... something?), even though this makes no sense. This was a pretty simple typo, forgetting www. in the second bucket name.

@jleclanche
Copy link
Author

Yeah, once I fixed the issue, the bucket got deleted even though there was a "real" instance of it, which caused the state to desync. Pretty nasty.

@ghost
Copy link

ghost commented Apr 10, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants