Skip to content

Instantly share code, notes, and snippets.

@lioneltchami
Created October 7, 2024 01:55
Show Gist options
  • Select an option

  • Save lioneltchami/13acc30a0df4ae40c41c764b6534edc9 to your computer and use it in GitHub Desktop.

Select an option

Save lioneltchami/13acc30a0df4ae40c41c764b6534edc9 to your computer and use it in GitHub Desktop.
Section Description Additional Information
1. Account Setup and Domain Registration - AWS Account Setup
- Domain name registration
- Use AWS Route 53 for domain registration if possible
- Ensure AWS account has necessary permissions
2. Develop your Application - Develop full-stack application
- Front-end: static website or SPA
- Back-end: serverless functions (Node.js, Python, etc.)
- Use React for front-end
- TypeScript for back-end
- Implement necessary API endpoints
3. Deploy with AWS SAM CLI - Use AWS SAM CLI commands:
sam build
sam package
sam deploy
- Ensure AWS SAM CLI is installed and configured
- Run commands from Cloud9 terminal or local environment
4. Define your SAM Template - Create template.yaml file
- Define resources: Lambda, API Gateway, S3, CloudFront
- Use YAML syntax
- Reference AWS SAM documentation for resource properties
5. Configure Secure HTTPS - Use AWS Certificate Manager (ACM)
- Integrate certificate with CloudFront
- Request certificate in us-east-1 region for CloudFront compatibility
- Automate certificate renewal
6. CloudFront Distribution - Set up CloudFront distribution for content delivery - Configure origin (S3 or API Gateway)
- Set up behaviors for different path patterns
7. API Gateway Custom Domain - Configure custom domain for API Gateway - Create custom domain name in API Gateway
- Map API stages to custom domain
8. Connect Custom Domain - Configure DNS record (CNAME) to point to CloudFront - Use domain registrar's control panel or Route 53
- Allow time for DNS propagation
9. Cloud Native Use Case AWS EKS Load Balancer DNS to Route 53 - Configure EKS Load Balancer DNS with Route 53 - Create hosted zone in Route 53
- Configure EKS ingress to use ALB
- Update Route 53 record set with ALB DNS name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment