Data Source: aws_iam_account_alias

The IAM Account Alias data source allows access to the account alias for the effective account in which Terraform is working.

Example Usage

data "aws_iam_account_alias" "current" {}

output "account_id" {
  value = data.aws_iam_account_alias.current.account_alias
}

Argument Reference

There are no arguments available for this data source.

Attribute Reference

This data source exports the following attributes in addition to the arguments above: