Files
opentf/website/source/docs/providers/aws/d/iam_account_alias.html.markdown
Clint a3ae38d1bb docs: Update AWS Data Source docs to have HCL formatted examples (#13467)
* docs: update AWS examples. Disntinguish between alb and alb listener datasource

* more hcl highlighting

* more hcl

* fix missing end quote in docs

* docs: finish updates to AWS data source highlights

Also updates layout to distinguish some resources
2017-04-07 10:54:28 -05:00

759 B

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_iam_account_alias docs-aws-datasource-iam-account-alias Provides the account alias for the AWS account associated with the provider connection to AWS.

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.

Attributes Reference

The following attributes are exported:

  • account_alias - The alias associated with the AWS account.