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

Error updating S3 Bucket tags: error setting resource tags: NoSuchBucket: The specified bucket does not exist #12907

Closed
bpiper opened this issue Apr 20, 2020 · 6 comments
Labels
bug Addresses a defect in current functionality. service/s3 Issues and PRs that pertain to the s3 service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.

Comments

@bpiper
Copy link

bpiper commented Apr 20, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

0.10.8

Affected Resource(s)

  • aws_s3_bucket

Terraform Configuration Files

resource "aws_s3_bucket" "mybucket" {
  bucket = "mybucket"
  force_destroy = true

  lifecycle {
    prevent_destroy = false
  }

  tags = {
    Name = "mybucket"
    Role = "whatever"
  }
}

Expected Behavior

New S3 bucket created and tagged successfully.

Actual Behavior

Bucket was created from Terraform's perspective, but tagging failed with following error due to eventual consistency.

aws_s3_bucket.mybucket: error updating S3 Bucket (mybucket) tags: error setting resource tags (mybucket): NoSuchBucket: The specified bucket does not exist

Steps to Reproduce

Bucket resource must not exist yet. Run terraform apply (see example resource definition above). May need to destroy and apply a number of times before hitting the error (which by its nature doesn't always occur). I've been hitting this error quite a lot recently.

References

@ghost ghost added the service/s3 Issues and PRs that pertain to the s3 service. label Apr 20, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 20, 2020
@ewbankkit
Copy link
Contributor

@bflad bflad added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 28, 2020
@dude0001
Copy link

dude0001 commented Jul 2, 2020

Has anyone found a workaround or root cause for this?

@nomeelnoj
Copy link

We just hit this today as well with terraform 0.12.24. Any updates/workarounds at this time?

@boiaanstoianov
Copy link

Same error on v0.12.26 any updates on this issue ?

@github-actions
Copy link

github-actions bot commented Nov 1, 2022

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Nov 1, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2022
@github-actions
Copy link

github-actions bot commented Jan 2, 2023

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 Jan 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/s3 Issues and PRs that pertain to the s3 service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.
Projects
None yet
Development

No branches or pull requests

6 participants