hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.84k stars 9.19k forks source link

resource/aws_api_gateway_account: Properly support unregistration #40004

Closed gdavison closed 1 week ago

gdavison commented 1 week ago

Description

An aws_api_gateway_account can be unregistered by clearing the cloudwatch_role_arn. Do that and add sweeper.

Output from Acceptance Testing

% make testacc PKG=apigateway TESTS='TestAccAPIGateway_serial/Account'

--- PASS: TestAccAPIGateway_serial (178.47s)
    --- PASS: TestAccAPIGateway_serial/Account (178.47s)
        --- PASS: TestAccAPIGateway_serial/Account/basic (178.47s)
github-actions[bot] commented 1 week ago

Community Note

Voting for Prioritization

For Submitters

github-actions[bot] commented 4 days ago

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!