Cloudfront Webpage
This Portfolio website is deployed on AWS Cloudfront and contains nothing fancy. It's a simple static site built with HTML, CSS (tailwinds), and JavaScript. The infrastructure is managed using Terraform(opentofu) for easy deployment and scalability.
References
- AWS Gitlab repository containing the code for the entire deployment
- AWS CloudFront Documentation
- CloudFront Homepage
Terraform deployment
We are using the opensource alternative of terraform called opentofu to deploy the infrastructure as code. Terraform deploys the following resources:
- Cloudfront distribution (cached content), access_list
- ACM certificate for SSL/TLS
- Route53 for DNS Records
- S3 bucket for static content
- KMS key for bucket encryption
- S3 event listener to invoke Lambda
- Lambda for cache invalidation
Architecture diagram showing S3, CloudFront, Route53, ACM, and Terraform deployment.
If you want to deploy a similar setup yourself, check out the repository linked above for the full code and instructions.