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

aws_s3_bucket timeouts block support (deletion) #15921

Closed
azhurbilo opened this issue Oct 29, 2020 · 2 comments · Fixed by #26121
Closed

aws_s3_bucket timeouts block support (deletion) #15921

azhurbilo opened this issue Oct 29, 2020 · 2 comments · Fixed by #26121
Labels
bug Addresses a defect in current functionality. service/s3 Issues and PRs that pertain to the s3 service.
Milestone

Comments

@azhurbilo
Copy link

Description

Terraform can not delete s3 bucket if it contains files (force_destroy Default:false) and it's absolutely ok.

But "apply" phase retry deletion infinitely

module.alb.aws_s3_bucket.xxx[0]: Still destroying... [id=xxx, 1h58m41s elapsed]
module.alb.aws_s3_bucket.xxx[0]: Still destroying... [id=xxx, 1h58m51s elapsed]
module.alb.aws_s3_bucket.xxx[0]: Still destroying... [id=xxx, 1h59m1s elapsed]
module.alb.aws_s3_bucket.xxx[0]: Still destroying... [id=xxx, 1h59m11s elapsed]
...

in our case Bitbucket CI has 2 hour max build time, after that time Terraform forcely stopped - part of applied stated was lost :(

resource "aws_s3_bucket" "s3_bucket" {
  ...
  timeouts {
    create = "60m"
    delete = "60m"
    update = "60m"
  }
}
Error: Unsupported block type
 in resource "aws_s3_bucket" "s3_bucket":
  92:   timeouts {
Blocks of type "timeouts" are not expected here.

not supported by "aws_s3_bucket"

New or Affected Resource(s)

  • aws_s3_bucket

References

@azhurbilo azhurbilo added the enhancement Requests to existing resources that expand the functionality or scope. label Oct 29, 2020
@ghost ghost added the service/s3 Issues and PRs that pertain to the s3 service. label Oct 29, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Oct 29, 2020
@bill-rich bill-rich added bug Addresses a defect in current functionality. and removed enhancement Requests to existing resources that expand the functionality or scope. needs-triage Waiting for first response or review from a maintainer. labels Nov 2, 2020
@github-actions github-actions bot added this to the v4.25.0 milestone Aug 4, 2022
@github-actions
Copy link

github-actions bot commented Aug 4, 2022

This functionality has been released in v4.25.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

github-actions bot commented Sep 4, 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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2022
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.
Projects
None yet
2 participants