Check out the Osones article about this template.
CloudFormation template to setup :
- S3 bucket with website hosting capabilities
- CloudFront distribution in front of the S3 bucket
- Route 53 records to match to the CloudFront CNAME
Note: you need to set up the Route 53 Public Hosted Zone
and get an Certificate within the us-east-1
region from Amazon Certificate
Manager.
Edit XX-parameters.json
according to deployment and launch stack:
aws cloudformation create-stack --stack-name prefix-infra-blog-env --template-body file:/serverless-blog-s3.yml --capabilities CAPABILITY_IAM --parameter file://serverless-blog-s3-parameters.json