mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-12 16:00:25 -04:00
* 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
911 B
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.