3 ms·
Since we are all sharing how to deploy static sites, here's my approach using CloudFormation to build a static site with S3, CloudFront, Certificate Manager and
by misterbrian 7y ago
Since we are all sharing how to deploy static sites, here's my approach using CloudFormation to build a static site with S3, CloudFront, Certificate Manager and Route53.
https://gitlab.com/verbose-equals-true/django-postgres-vue-gitlab-ecs/-/blob/develop/cloudformation/infrastructure/static-site.yaml https://gitlab.com/verbose-equals-true/django-postgres-vue-g...
and here's how I deploy that site with GitLab CI.
https://gitlab.com/verbose-equals-true/django-postgres-vue-gitlab-ecs/-/blob/develop/gitlab-ci/aws.yml#L29 https://gitlab.com/verbose-equals-true/django-postgres-vue-g...
Also, nobody mentioned GitLab pages which offers some pretty nice static site solutions as well.
- nostrebored 7y agoNice solution! If you're interested in a code based solution, this is one space where the CDK really shines. OAI, CloudFront Website Distributions, and Route53 AAAA records to the distribution are all turnkey constructs. Deployment is just executing 'cdk deploy'. If your CFN gives you headaches ever, maybe take a look
- misterbrian 7y agoThanks, I'm interested in learning a code-based solution. I like the ideas behind CDK, Pulumi and Terraform, but I feel like they all have trade-offs. CFN isn't the best, but I don't look forward to having to re-implement my entire tech stack to achieve the same result compared with what I currently have