This is a demo project working with the Amazon Cloud Development Kit (CDK) in TypeScript.
For more information on working with the CDK, see the CDK developer guide.
SecureBucket: extends s3.Bucket with the following security baseline:
- Block public access by default
- Require bucket encryption to be enabled
- Require encryption of uploaded objects
- Require API requests to be over encrypted connections (eg. HTTPS)
- Install Node JS.
- Install the AWS CDK and TypeScript, eg.
npm install -g aws-cdk && npm install -g typescript. - Git clone this package and run
npm install. - Run
npm testand verify that the build succeeds. - Install the AWS CLI.
- Set up your AWS CLI environment to enable deploying CDK stacks to your AWS account.
- Run
cdk deployto deploy the demo stack to your AWS account.
cdk bootstrapcreate resources required to deploy CDK stacks via an automatically generated AWS CloudFormation "bootstrap" stackcdk deploydeploy CDK stacks to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemit the synthesized CloudFormation templatenpm run docsgenerate code documentation at docs/index.html which can be viewed in a browsernpm run test:cleanclear the jest test cachenpm run watchwatch for changes and compilenpm testrun jest unit tests
- AWS CDK guide: https://docs.aws.amazon.com/cdk/v2/guide
- aws/aws-cdk Git repository: https://github.com/aws/aws-cdk