Infrastructure to serve yourDomain from s3 using Cloudfront. Redirects http request to https. Serving both
- yourDomain e.g. example.com
- www.yourDomain e.g. www.example.com
Takes approx 30 min to build with cfn.
- AWS credentials configured, permissions to create related resources.
in your default region
- S3 Buckets: yourDomain, www.yourDomain and logs.yourDomain
- Hosted zone, DNS records
- Certificate (in region us-east-1)
- Cloudfront Distribution
-
Fill out .settings.config file.
-
Generate infrastructure by running
bash stack.sh create
. -
Add nameservers to your domain registrar. Get nameservers from hosted zone in AWS route 53.
- Delete infrastructure with
bash stack.sh delete
.