Files
opentf/website/source/docs/providers/aws/d/canonical_user_id.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

911 B

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_canonical_user_id docs-aws-datasource-canonical-user-id Provides the canonical user ID for the AWS account associated with the provider connection to AWS.

aws_canonical_user_id

The Canonical User ID data source allows access to the canonical user ID for the effective account in which Terraform is working.

Example Usage

data "aws_canonical_user_id" "current" {}

output "canonical_user_id" {
  value = "${data.aws_canonical_user_id.current.id}"
}

Argument Reference

There are no arguments available for this data source.

Attributes Reference

The following attributes are exported:

  • id - The canonical user ID associated with the AWS account.

  • display_name - The human-friendly name linked to the canonical user ID.