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

add error handling for when bucket is already destroyed #10534

Conversation

teraken0509
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Closes #10492

Release note for CHANGELOG:

NONE

Output from acceptance testing:

ter *)$ make testacc TESTARGS='-run=TestAccAWSS3BucketPublicAccessBlock_bucketDisappears'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -count 1 -parallel 20 -run=TestAccAWSS3BucketPublicAccessBlock_bucketDisappears -timeout 120m
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
=== RUN   TestAccAWSS3BucketPublicAccessBlock_bucketDisappears
=== PAUSE TestAccAWSS3BucketPublicAccessBlock_bucketDisappears
=== CONT  TestAccAWSS3BucketPublicAccessBlock_bucketDisappears
--- PASS: TestAccAWSS3BucketPublicAccessBlock_bucketDisappears (35.89s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	35.954s
testing: warning: no tests to run
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws/internal/flatmap	0.013s [no tests to run]
testing: warning: no tests to run
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags	0.025s [no tests to run]

@teraken0509 teraken0509 requested a review from a team October 17, 2019 11:31
@ghost ghost added size/S Managed by automation to categorize the size of a PR. service/s3 Issues and PRs that pertain to the s3 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Oct 17, 2019
@bflad bflad added the bug Addresses a defect in current functionality. label Oct 31, 2019
@bflad bflad added this to the v2.35.0 milestone Oct 31, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for this fix, @kterada0509 🚀

--- PASS: TestAccAWSS3BucketPublicAccessBlock_basic (34.92s)
--- PASS: TestAccAWSS3BucketPublicAccessBlock_BlockPublicAcls (67.96s)
--- PASS: TestAccAWSS3BucketPublicAccessBlock_BlockPublicPolicy (65.97s)
--- PASS: TestAccAWSS3BucketPublicAccessBlock_bucketDisappears (18.88s)
--- PASS: TestAccAWSS3BucketPublicAccessBlock_disappears (29.57s)
--- PASS: TestAccAWSS3BucketPublicAccessBlock_IgnorePublicAcls (64.78s)
--- PASS: TestAccAWSS3BucketPublicAccessBlock_RestrictPublicBuckets (63.24s)

@bflad bflad merged commit c9b494d into hashicorp:master Oct 31, 2019
bflad added a commit that referenced this pull request Oct 31, 2019
@ghost
Copy link

ghost commented Nov 7, 2019

This has been released in version 2.35.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 for triage. Thanks!

@ghost
Copy link

ghost commented Mar 29, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 29, 2020
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. size/S Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_s3_bucket_public_access_block refresh fails after S3 bucket deleted
2 participants