aws/cloudfront-list

List CloudFront Distributions

List CloudFront CDN distributions.

aws
cloudfront
cdn
list

Command

aws cloudfront list-distributions

Explanation

Retrieves a list of your CloudFront distributions with associated domain names, statuses, and configurations.

Common Use Cases

  • Auditing CDN endpoints
  • Verifying deployment of new CloudFront distributions

Best Practices

  • Use `--output table` for readable summaries
  • Keep distribution IDs documented for invalidations and updates

Common Mistakes to Avoid

  • Forgetting to use `--query` filters for large distribution lists
  • Missing `cloudfront:ListDistributions` permission

Troubleshooting

Problem: No distributions listed

Solution: Verify your AWS account and region (CloudFront is global).

Examples

List all CloudFront distributions

aws cloudfront list-distributions

List distributions with IDs and domains only

aws cloudfront list-distributions --query 'DistributionList.Items[*].{Id:Id,Domain:DomainName}'