-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
resource/aws_api_gateway_account: Properly support unregistration #40004
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 🚀
Just one potential suggestion on retaining the no-op destroy behavior as an opt-in feature.
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 PKG=apigateway TESTS=TestAccAPIGateway_serial/Account/
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/apigateway/... -v -count 1 -parallel 20 -run='TestAccAPIGateway_serial/Account/' -timeout 360m
2024/11/07 10:01:35 Initializing Terraform AWS Provider...
=== RUN TestAccAPIGateway_serial
=== RUN TestAccAPIGateway_serial/Account
=== RUN TestAccAPIGateway_serial/Account/ResetOnDelete_true
=== RUN TestAccAPIGateway_serial/Account/basic
=== RUN TestAccAPIGateway_serial/Account/CloudwatchRoleARN_Value
=== RUN TestAccAPIGateway_serial/Account/CloudwatchRoleARN_Empty
=== RUN TestAccAPIGateway_serial/Account/FrameworkMigration_Basic
=== RUN TestAccAPIGateway_serial/Account/FrameworkMigration_CloudwatchRoleARN
=== RUN TestAccAPIGateway_serial/Account/ResetOnDelete_false
--- PASS: TestAccAPIGateway_serial (389.36s)
--- PASS: TestAccAPIGateway_serial/Account (389.36s)
--- PASS: TestAccAPIGateway_serial/Account/ResetOnDelete_true (74.08s)
--- PASS: TestAccAPIGateway_serial/Account/basic (34.53s)
--- PASS: TestAccAPIGateway_serial/Account/CloudwatchRoleARN_Value (81.50s)
--- PASS: TestAccAPIGateway_serial/Account/CloudwatchRoleARN_Empty (45.07s)
--- PASS: TestAccAPIGateway_serial/Account/FrameworkMigration_Basic (45.45s)
--- PASS: TestAccAPIGateway_serial/Account/FrameworkMigration_CloudwatchRoleARN (64.17s)
--- PASS: TestAccAPIGateway_serial/Account/ResetOnDelete_false (44.54s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/apigateway 394.414s
This functionality has been released in v5.75.1 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! |
Description
An
aws_api_gateway_account
can be unregistered by clearing thecloudwatch_role_arn
. Do that and add sweeper.Output from Acceptance Testing