https://github.com/davicho-dev/terraform-aws-s3-cloudfront-cdn
https://github.com/davicho-dev/terraform-aws-s3-cloudfront-cdn
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/davicho-dev/terraform-aws-s3-cloudfront-cdn
- Owner: Davicho-Dev
- Created: 2025-06-09T05:04:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-09T05:36:07.000Z (about 1 year ago)
- Last Synced: 2025-06-20T17:02:47.213Z (about 1 year ago)
- Language: HCL
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform AWS S3 + CloudFront CDN Template
Reusable Terraform template to deploy a secure and performant static content delivery stack using:
- Private S3 bucket
- CloudFront CDN with OAC (Origin Access Control)
- Custom domain with SSL (ACM)
- Route 53 alias record
---
## 📦 Features
- Origin Access Control (OAC) enabled
- HTTPS using ACM in `us-east-1`
- Route 53 alias record support
- Fully parametrized (no hardcoded domains)
- Production-ready tagging
---
## 🚀 Usage
1. Clone the repo
```bash
git clone git@github.com:Davicho-Dev/Terraform-AWS-S3-CloudFront-CDN.git
```
2.
```bash
cd Terraform-AWS-S3-CloudFront-CDN
```
2. Deploy
```bash
terraform init
terraform plan
terraform apply
```