- Install AWS CDK using
npm install -g aws-cdk
- Run
npm install
in repo root directory to install the packages - Switch/fix the
default
AWS profile to be the profile you want to use (profile management is not quite working properly) - Run
cdk bootstrap
to bootstrap the account for CDK usage
- Run
npm run build
to compile the code (remember to do this whenever there is a code change! or use "npm run watch") cdk deploy
deploy this stack to your default AWS account/region
Output will show your correct endpoint, when you completed the cdk deploy
stage.
aws s3 cp example/hello.jpg s3://$BucketName/
open browser to http://$BucketName.s3-website-us-east-1.amazonaws.com/hello.jpg
open browser to http://$BucketName.s3-website-us-east-1.amazonaws.com/400x400/hello.jpg
- Run "cdk destroy" to delete the stack. This works even if the stack never was created properly in the first place.