The CloudFront Hosting Toolkit can be easily integrated into your existing CDK projects as a construct.
Installation
Install the CloudFront Hosting Toolkit in your CDK project:
Configuration
Before using the construct, you need to set up some configuration files. See our CDK Configuration Guide for detailed instructions.
Usage
After setting up the required configuration, you can use the CloudFront Hosting Toolkit construct in your CDK code:
For GitHub Repository Deployment
For S3 Repository Deployment
Deployment
Deploy your CDK project as usual. The CloudFront Hosting Toolkit infrastructure will be deployed as part of your stack.