https://github.com/rocky-jaiswal/static-site-cdk
  
  
    CDK + Static Site 
    https://github.com/rocky-jaiswal/static-site-cdk
  
        Last synced: 2 months ago 
        JSON representation
    
CDK + Static Site
- Host: GitHub
 - URL: https://github.com/rocky-jaiswal/static-site-cdk
 - Owner: rocky-jaiswal
 - Created: 2021-07-13T11:16:00.000Z (over 4 years ago)
 - Default Branch: main
 - Last Pushed: 2021-07-15T10:01:24.000Z (over 4 years ago)
 - Last Synced: 2025-01-19T09:44:03.509Z (10 months ago)
 - Language: Python
 - Size: 17.6 KB
 - Stars: 1
 - Watchers: 2
 - Forks: 1
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 
 
Awesome Lists containing this project
README
          # Static Site with CDK
Python CDK project to deploy a static site to AWS Cloudfront backed by a S3 bucket
## Useful commands
 * `npx cdk ls`          list all stacks in the app
 * `npx cdk synth`       emits the synthesized CloudFormation template
 * `npx cdk diff`        compare deployed stack with current state
 * `npx cdk deploy`      deploy this stack to your default AWS account/region
 * `npx cdk destroy`     destroy stack
 * `npx cdk docs`        open CDK documentation
 * `npx cdk bootstrap`   bootstrap CDK (only 1 time)
Enjoy!
## Note
- First time, check if any old stack is present in CloudFormation and delete it, `the run npx cdk bootstrap` otherwise CDK complains of "bootstrap error" :shrug: