Interview Prep/AWS/EC2, Auto Scaling and Load Balancing

Creating an HTTPS listener fails with `CertificateNotFound: Certificate 'arn:aws:acm:...' not found`.

IntermediateTroubleshootingEC2, Auto Scaling and Load Balancing
Answer

Likely causes → The ACM certificate is in a different Region from the ALB, it is still PENDING_VALIDATION, or the ARN belongs to another account.

Diagnose →

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

Fix →

  1. Request or import the certificate in the ALB's Region
  2. Finish DNS validation by creating the CNAME that ACM shows (Route 53 can do it in one click)
  3. Use the ISSUED ARN in the listener

Prevent → Manage certificates in IaC with aws_acm_certificate_validation, so the listener waits until the certificate is issued.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing