CloudFormation Stack Issues
Stack Creation Failed
Check the Events Tab:- Go to CloudFormation console
- Select your stack
- Click Events tab
- Look for resources with
CREATE_FAILEDstatus - Read the “Status reason” column for error details
Common CloudFormation Errors
”The subnet ID ‘subnet-xxx’ does not exist”
Cause: Selected subnet is in wrong region or doesn’t exist Fix: Verify you selected a subnet in the same region as your stack”Subnets specified should be in distinct availability zones”
Cause: Both subnets are in the same Availability Zone (Production only) Fix: Select Subnet2 from a different AZ than Subnet1”Cannot find version 14.9 for postgres”
Cause: Invalid PostgreSQL version Fix: Template should use PostgreSQL 15.x (verify template is latest version)“The volume ‘vol-xxx’ is not in the same availability zone”
Cause: EBS volume and instance in different AZs Fix: This is a template bug - update to latest template versionApplication Not Accessible
Symptom: Cannot reachhttp://ec2-xxx.compute-1.amazonaws.com/
Diagnosis Steps
1. Verify instance is running:Solution: Application Still Starting
Symptom: Connection refused immediately after stack creation Cause: Application takes 2-3 minutes to start Fix: Wait and retrySolution: Security Group Blocking
Symptom: Connection times out Cause: Security group doesn’t allow your IP Fix: Update security group or stack parameterHTTPS/SSL Issues
Symptom: HTTPS not working, certificate errorsDNS Not Resolving
Symptom:DNS problem: NXDOMAIN looking up A for my-app.example.com
Diagnosis:
- Route 53 hosted zone doesn’t exist:
- DNS record not created:
- DNS propagation delay (wait up to 5 minutes):
Let’s Encrypt Validation Failed
Symptom:Failed to verify challenge or The client lacks sufficient authorization
Diagnosis:
- Port 80 not accessible from 0.0.0.0/0:
- nginx not configured properly:
- Application blocking ACME challenge:
Certificate Expired
Symptom:SSL certificate problem: certificate has expired
Diagnosis:
- Auto-renewal failed:
- Port 80 blocked during renewal:
- Ensure security group allows HTTP from 0.0.0.0/0
- Force manual renewal:
nginx Not Starting
Symptom:nginx: [emerg] cannot load certificate
Diagnosis:
Database Connection Issues (Production)
Symptom: Application cannot connect to RDSRDS Instance Not Available
Diagnosis:Security Group Blocking EC2→RDS
Diagnosis:Test Database Connectivity
From EC2 instance:Wrong Database Credentials
Diagnosis:Performance Issues
High CPU Usage
Diagnosis:- Upgrade instance type:
- Sandbox: t3.medium → t3.large
- Production: m5.xlarge → m5.2xlarge
- Check for runaway processes:
- Review application logs for errors:
High Database Connections (Production)
Diagnosis:- Increase max_connections:
- Check for connection leaks:
- Upgrade RDS instance class:
- db.t3.medium → db.m5.large
Slow Application Response
Diagnosis:- Check application logs for slow queries
- Increase instance size (more vCPU, RAM)
- Upgrade to c5 series (compute-optimized)
- Enable RDS read replicas (production high traffic)
Access and Permission Issues
SSM Session Manager Not Working
Symptom:TargetNotConnected error when starting session
Diagnosis:
- Instance doesn’t have internet access:
- Needs NAT Gateway or IGW for SSM
- Or use VPC endpoints for SSM
- IAM role not attached:
- SSM agent not running:
SSH Connection Refused
Symptom:Connection refused when trying to SSH
Diagnosis:
- Check security group allows port 22 from your IP
- Verify you have the correct private key
- Check instance is running
Billing and Cost Issues
Unexpected Charges
Diagnosis:- Forgot to stop/delete instances
- EBS volumes not deleted with instances
- RDS backups accumulating
- Elastic IP charges (when not attached)
Getting Help
Collect Diagnostic Information
Before contacting support, gather this information:Support Channels
For AWS Marketplace Issues:- Email: aws-support@aletyx.com
- Subject: Include “AWS Marketplace” and your stack name
- Include: All diagnostic information above
- AWS Support Console: https://console.aws.amazon.com/support/
- Topic: EC2, RDS, CloudFormation, etc.
- Aletyx Docs: https://docs.aletyx.ai
- AWS Docs: https://docs.aws.amazon.com/
Next Steps
- Security Best Practices: Security Guide
- SSL/HTTPS Configuration: SSL/HTTPS Guide
- Sandbox Deployment: Sandbox Edition
- Production Deployment: Production Edition