Data Source: aws_cloudfront_origin_access_identities

Use this data source to get ARNs, ids and S3 canonical user IDs of Amazon CloudFront origin access identities.

Example Usage

All origin access identities in the account

data "aws_cloudfront_origin_access_identities" "example" {}

Origin access identities filtered by comment/name

Origin access identities whose comments are example-comment1, example-comment2

data "aws_cloudfront_origin_access_identities" "example" {
  comments = ["example-comment1", "example-comment2"]
}

Argument Reference

Attribute Reference

This data source exports the following attributes in addition to the arguments above: