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

Better error message when create a s3 bucket which already exits #19043

Closed
tkumark opened this issue Apr 21, 2021 · 2 comments
Closed

Better error message when create a s3 bucket which already exits #19043

tkumark opened this issue Apr 21, 2021 · 2 comments
Labels
service/s3 Issues and PRs that pertain to the s3 service.

Comments

@tkumark
Copy link

tkumark commented Apr 21, 2021

When create s3 if the bucket already exits by some one else, there should be a better message like "Bucket with the same name already exists". current messaage is miss leading

Error: Error creating S3 bucket: AuthorizationHeaderMalformed: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-2'

resource "aws_s3_bucket" "prod_terraform_state" {
  bucket = "mybucketname"
  # Enable versioning so we can see the full revision history of our
  # state files
  versioning {
    enabled = true
  }
  # Enable server-side encryption by default
  server_side_encryption_configuration {
    rule {
      apply_server_side_encryption_by_default {
        sse_algorithm = "AES256"
      }
    }
  }
}
@ghost ghost added the service/s3 Issues and PRs that pertain to the s3 service. label Apr 21, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 21, 2021
@ewbankkit
Copy link
Contributor

@tkumark Thanks for raising this issue.
It has already been noticed in #13587. I'm going to close this one as a duplicate so that we can concentrate discussion in the linked issue.
Please add any additional comments there.

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Apr 21, 2021
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/s3 Issues and PRs that pertain to the s3 service.
Projects
None yet
Development

No branches or pull requests

2 participants