CloudFront 배포(Distribution) 목록 가져오기
aws cloudfront list-distributions
Shell
복사
특정 배포의 상세 정보 가져오기
aws cloudfront get-distribution --id <DISTRIBUTION_ID>
Shell
복사
특정 배포의 DNS 가져오기
aws cloudfront get-distribution --id <DISTRIBUTION_ID> --query "Distribution.DomainName" --output text
Shell
복사
특정 배포의 오리진(Origin) 가져오기
aws cloudfront get-distribution --id <DISTRIBUTION_ID> --query "Distribution.DistributionConfig.Origins.Items[*].DomainName" --output text
Shell
복사
특정 배포의 PriceClass(가격 클래스) 가져오기
aws cloudfront get-distribution --id <DISTRIBUTION_ID> --query "Distribution.DistributionConfig.PriceClass" --output text
Shell
복사
특정 배포의 태그 조회
aws cloudfront list-tags-for-resource --resource arn:aws:cloudfront::<ACCOUNT_ID>:distribution/<DISTRIBUTION_ID>
Shell
복사
CloudFront Function 가져오기
aws cloudfront list-functions --region us-east-1 --query "FunctionList.Items[].{Name:Name, Stage:FunctionMetadata.Stage}" --output json
Shell
복사
특정 배포의 상태(Enabled/Disabled) 확인
aws cloudfront get-distribution --id <DISTRIBUTION_ID> --query "Distribution.DistributionConfig.Enabled"
Shell
복사

