AWS frontend infrastructure, includes:
- 🏢 S3 - storage for static assets
- 🛰 Cloudfront - cdn
- 🗿 AWS Certificate Manager - SSL certificate
- 🚏 Route 53 - DNS/Domain setup
- ⛽️ S3 Unzip lambda - to extract archive with static assets
- Install dependencies:
cd terraform
npm i
- Build typescript and provide DomainHost and DomainName (can be equal, or DomainName can be a subdomain)
DomainHost="domain.com" DomainName="test.domain.com" BakendBucket="terraform.domain.com" BackendKey="terraform-typescript-frontend-infrastructure.json" UnzipLambdaName="unzipTTFI" npm run go
- Run terraform
terraform init
terraform plan
terraform apply