» Data source: aws_cloudfront_distribution

Use this data source to retrieve information about a CloudFront distribution.

» Example Usage

data "aws_cloudfront_distribution" "test" {
  id = "EDFDVBD632BHDS5"
}

» Argument Reference

  • id - The identifier for the distribution. For example: EDFDVBD632BHDS5.

» Attributes Reference

The following attributes are exported:

  • id - The identifier for the distribution. For example: EDFDVBD632BHDS5.

  • arn - The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.

  • status - The current status of the distribution. Deployed if the distribution's information is fully propagated throughout the Amazon CloudFront system.

  • domain_name - The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.

  • last_modified_time - The date and time the distribution was last modified.

  • in_progress_validation_batches - The number of invalidation batches currently in progress.

  • etag - The current version of the distribution's information. For example: E2QWRUHAPOMQZL.

  • hosted_zone_id - The CloudFront Route 53 zone ID that can be used to route an [Alias Resource Record Set][7] to. This attribute is simply an alias for the zone ID Z2FDTNDATAQYW2.