-
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
No way to import an alternate contact detail of a member account #22358
Comments
To be a bit clearer, this should not happen: With resource:
importing:
But now planning immediately wants to destroy it, because the account_id is not set, and all the details are wrong as they are not read from the account_id specified in the resource, but from the org master account (or delegated iam account if you're delegating the accounts api to another account).
So the import is not capable of importing a member account, doesn't set the account_id attribute anyway, and further terraforms will want to destructively remove the contact details you do have set up in the org master account or the delegated account, so its even worse than just not being able to do it- its actually destructve, and should not be used at all for member accounts in its current implementation. |
This functionality has been released in v3.72.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Provider version 3.70.0
Terraform version any (tested on 0.13.7)
I manage an organisation with hundreds of member accounts, and I wish to make use of the new alternate contacts API . Before the API existed I managed all contact details using the root account so they are already set (so I dont have the problem in #22186). I obviously want to import them and start using the new resource.
The resource allows you tp specify an
account_id
optional parameter to support setting contacts on member accounts, however according to the docshttps://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/account_alternate_contact
it is only possible to import the current account contact details, not a target account_id contact details.This makes it totally unsuitable for trying to import all the existing contact details.
I suggest that instead of passing
OPERATIONS
orBILLING
, you should be able to pass123456789012:OPERATIONS
as using a colon to separate multiple parameters required in the import has precedent with a lot of other importable resources.The text was updated successfully, but these errors were encountered: