-
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
aws_organizations_account
tries to recreate resource if status is SUSPENDED
(introduced in v4.9.0)
#24949
Comments
Hey @jakemulley 👋 Thank you for taking the time to raise this! While it's not exactly the same thing, there was a (vaguely) similar bug that was fixed via #24899, which was included in the |
Hello @justinretzolk! I've given it a try under v4.15.1:
Unfortunately, I get the same attempt to recreate, so looks like it's a slightly different one:
|
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
aws_organizations_account
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Expected Behavior
A suspended account should not try to recreate if it is within its 90-day post-closure period.
Actual Behavior
In
terraform-provider-aws
prior to v4.9.0 (e.g. v4.8.0), Terraform reports no changes to a suspended account referenced via the above resource block:However, in
terraform-rpovider-aws
v4.9.0, Terraform tries to recreate the account:Steps to Reproduce
aws_organizations_account
to create an AWS account via Terraformterraform plan
on the resourceReferences
Potentially introduced via #23931, where
organizations.AccountStatusSuspended
is used to returnresource.NotFoundError
.The text was updated successfully, but these errors were encountered: