This is an AWS CDK Construct to make deploying a single page website (Angular/React/Vue) to AWS S3 behind SSL/Cloudfront as easy as 5 lines of code.
npm install --save cdk-spa-deploy
pip install cdk-spa-deploy
If you purchased your domain through route 53 and already have a hosted zone then just use the name to deploy your site behind cloudfront. This handles the SSL cert and everything for you.
You can also pass the ARN for an SSL certification and your alias routes to cloudfront
Pass in one boolean to tell SPA Deploy to encrypt your website bucket
Pass in a boolean and an array of IP addresses and your site is locked down!