This is the companion repository to the CloudFront Deep Dive course that's available here:
The directories contain different demos that are written to be deployed with OpenTofu but should also work with Terraform. Keep in mind, that the infrastructure code is written to enable the Demos, it may not be suitable for production use, tread carefully.
Note: Deploying these demos may incur costs in your AWS account unless you stay within the free tier!
Unless otherwise specified, the deployment works usually like this:
(you can replace tofu with terraform)
- Ensure the appropriate credentials for your AWS environment are set up (e.g.
AWS_PROFILEenv variable.) - Initiate the app using
tofu init - Deploy the app using
tofu apply, confirm the changes withyes - (Optional) Tear down everything with
tofu delete
- 01 Demo app
- 02 Calculator App
- 03 DNS/TLS Setup
- 04 Logging
- 05 Monitoring & Alerting
- 06 Web Application Firewall
- 07 API Gateway
- 08 Custom Origin
- 09 CloudFront functions based Blue/Green deployment
- 10 Lambda@Edge & CloudFront functions based Blue/Green deployment
- 11 Authentication with CloudFront native tools