github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/d/iam_account_alias.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_iam_account_alias"
     4  sidebar_current: "docs-aws-datasource-iam-account-alias"
     5  description: |-
     6    Provides the account alias for the AWS account associated with the provider
     7    connection to AWS.
     8  ---
     9  
    10  # aws\_iam\_account\_alias
    11  
    12  The IAM Account Alias data source allows access to the account alias
    13  for the effective account in which Terraform is working.
    14  
    15  ## Example Usage
    16  
    17  ```hcl
    18  data "aws_iam_account_alias" "current" {}
    19  
    20  output "account_id" {
    21    value = "${data.aws_iam_account_alias.current.account_alias}"
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  There are no arguments available for this data source.
    28  
    29  ## Attributes Reference
    30  
    31  The following attributes are exported:
    32  
    33  * `account_alias` - The alias associated with the AWS account.