Manages the account alias for the AWS Account.
resource "aws_iam_account_alias" "alias" {
account_alias = "my-account-alias"
}
This resource supports the following arguments:
account_alias
- (Required) The account aliasThis resource exports no additional attributes.
In Terraform v1.5.0 and later, use an import
block to import the current Account Alias using the account_alias
. For example:
import {
to = aws_iam_account_alias.alias
id = "my-account-alias"
}
Using terraform import
, import the current Account Alias using the account_alias
. For example:
% terraform import aws_iam_account_alias.alias my-account-alias