-
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
New Resource: aws_auditmanager_account_registration
#28314
Conversation
Community NoteVoting for Prioritization
For Submitters
|
e587b65
to
833f75b
Compare
if !plan.KmsKey.IsNull() { | ||
in.KmsKey = aws.String(plan.KmsKey.ValueString()) | ||
} | ||
out, err := conn.RegisterAccount(ctx, &in) |
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.
What happens if RegisterAccount
is called when the account is already registered?
Given the deregister_on_destroy
flag there is a possibility that this will happen even if everything is managed by Terraform.
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.
This functions like a typical Put*
API. Calling it when the account is already active just sets the KMS key and delegated account ID values to the new input and keeps the status as ACTIVE
.
This functionality has been released in v4.47.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
aws_auditmanager_account_registration
will allow practitioners to enable AuditManager in their account via terraform.Notable behavior of this resource:
deregister_on_destroy
attribute totrue
.RegisterAccount
API with the appropriate arguments set.RegisterAccount
API).Relations
Relates #17981
Output from Acceptance Testing