Use this data source to get ARNs, ids and S3 canonical user IDs of Amazon CloudFront origin access identities.
data "aws_cloudfront_origin_access_identities" "example" {}
Origin access identities whose comments are example-comment1
, example-comment2
data "aws_cloudfront_origin_access_identities" "example" {
comments = ["example-comment1", "example-comment2"]
}
comments
(Optional) - Filter origin access identities by comment.This data source exports the following attributes in addition to the arguments above:
iam_arns
- Set of ARNs of the matched origin access identities.ids
- Set of ids of the matched origin access identities.s3_canonical_user_ids
- Set of S3 canonical user IDs of the matched origin access identities.