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

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_canonical_user_id"
     4  sidebar_current: "docs-aws-datasource-canonical-user-id"
     5  description: |-
     6    Provides the canonical user ID for the AWS account associated with the provider
     7    connection to AWS.
     8  ---
     9  
    10  # aws\_canonical\_user\_id
    11  
    12  The Canonical User ID data source allows access to the [canonical user ID](http://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html)
    13  for the effective account in which Terraform is working.
    14  
    15  ## Example Usage
    16  
    17  ```hcl
    18  data "aws_canonical_user_id" "current" {}
    19  
    20  output "canonical_user_id" {
    21    value = "${data.aws_canonical_user_id.current.id}"
    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  * `id` - The canonical user ID associated with the AWS account.
    34  
    35  * `display_name` - The human-friendly name linked to the canonical user ID.