-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[enhancement]: r/aws_lightsail_bucket: add force_delete attr for lightsail s3 bucket #33586
[enhancement]: r/aws_lightsail_bucket: add force_delete attr for lightsail s3 bucket #33586
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccLightsailBucket_' PKG=lightsail ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lightsail/... -v -count 1 -parallel 2 -run=TestAccLightsailBucket_ -timeout 360m
=== RUN TestAccLightsailBucket_basic
=== PAUSE TestAccLightsailBucket_basic
=== RUN TestAccLightsailBucket_BundleId
=== PAUSE TestAccLightsailBucket_BundleId
=== RUN TestAccLightsailBucket_disappears
=== PAUSE TestAccLightsailBucket_disappears
=== RUN TestAccLightsailBucket_tags
=== PAUSE TestAccLightsailBucket_tags
=== RUN TestAccLightsailBucket_forceDelete
=== PAUSE TestAccLightsailBucket_forceDelete
=== CONT TestAccLightsailBucket_basic
=== CONT TestAccLightsailBucket_tags
--- PASS: TestAccLightsailBucket_basic (41.34s)
=== CONT TestAccLightsailBucket_disappears
--- PASS: TestAccLightsailBucket_disappears (33.31s)
=== CONT TestAccLightsailBucket_forceDelete
--- PASS: TestAccLightsailBucket_tags (76.71s)
=== CONT TestAccLightsailBucket_BundleId
--- PASS: TestAccLightsailBucket_forceDelete (47.65s)
--- PASS: TestAccLightsailBucket_BundleId (75.29s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/lightsail 157.024s
@k4rtikp4til Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.19.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! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
adds
force_delete
attribute to Lightsail Bucket which allows to force delete a non-empty bucket duringterraform destroy
I have amended the
testAccLightsailBucket_basic
to check for defaultforce_delete
value and addedtestAccLightsailBucket_forceDelete
to check forforce_delete=true
. Happy to amend/add more acceptance tests if required.Relations
Closes #33585
References
AWS Go SDK: https://docs.aws.amazon.com/sdk-for-go/api/service/lightsail/#Lightsail.DeleteBucket
Output from Acceptance Testing
TestAccLightsailBucket_basic
TestAccLightsailBucket_forceDelete