This template will deploy a sample html application that listens to incoming requests from any subdomain on the domain specified when the stack is created.
Detailed instructions here: https://aws.amazon.com/blogs/infrastructure-and-automation/deploy-spa-with-personalized-subdomains-using-aws-cdk/
Infrastructure created:
- S3 bucket
- Domain TLS certificate
- Route 53 DNS entry
- CloudFront distribution
- AWS profile configured
- AWS CDK installed see here for instructions
- A domain ( Zone ) that has been deligated to Route 53
Run
cdk bootstrap
cdk deploy -c primaryDomain={your-domain.name}
You will need to manually delete the index.html in the S3 bucket then remove the stack with:
Run
cdk destroy
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.