Resource: aws_iam_account_alias

Manages the account alias for the AWS Account.

Example Usage

resource "aws_iam_account_alias" "alias" {
  account_alias = "my-account-alias"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports no additional attributes.

Import

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