Terraform resource for managing AWS Audit Manager Account Registration.
resource "aws_auditmanager_account_registration" "example" {}
resource "aws_auditmanager_account_registration" "example" {
deregister_on_destroy = true
}
The following arguments are optional:
delegated_admin_account
- (Optional) Identifier for the delegated administrator account.deregister_on_destroy
- (Optional) Flag to deregister AuditManager in the account upon destruction. Defaults to false
(ie. AuditManager will remain active in the account, even if this resource is removed).kms_key
- (Optional) KMS key identifier.This resource exports the following attributes in addition to the arguments above:
id
- Unique identifier for the account registration. Since registration is applied per AWS region, this will be the active region name (ex. us-east-1
).status
- Status of the account registration request.In Terraform v1.5.0 and later, use an import
block to import Audit Manager Account Registration resources using the id
. For example:
import {
to = aws_auditmanager_account_registration.example
id = "us-east-1"
}
Using terraform import
, import Audit Manager Account Registration resources using the id
. For example:
% terraform import aws_auditmanager_account_registration.example us-east-1