Interview Prep/AWS/Route 53, CloudFront, API Gateway and Messaging

When editing a CloudFront distribution, your ACM certificate does not appear in the dropdown.

BeginnerTroubleshootingRoute 53, CloudFront, API Gateway and Messaging
Answer

Likely causes → CloudFront only uses ACM certificates from us-east-1 (N. Virginia). Other causes: the certificate is not yet ISSUED, or it does not cover the alternate domain name you added.

Diagnose →

aws acm list-certificates --region us-east-1 --query 'CertificateSummaryList[].[DomainName,Status]'
aws acm describe-certificate --region us-east-1 --certificate-arn <arn> --query 'Certificate.SubjectAlternativeNames'

Fix → Request the certificate in us-east-1 with every CNAME (or a wildcard), validate it by DNS, then attach it.

Prevent → In Terraform, use a provider alias for us-east-1 just for CloudFront certificates.

aws All AWS questions Roadmap: AWS core services

More on Route 53, CloudFront, API Gateway and Messaging