Example aws-cdk Project
Simple aws-cdk example which creates a Lambda which has access to ParameterStore and Cloudwatch Logs and is triggered by a Cloudwatch Event.
To try out this example you will need to install the aws-cdk for your platform from here :
Assume you have created a file with your AWS credentials in ~./aws/credentials as the Serverless Framework will require these to be able to run.
Install the dependencies:
npm run-script build
To print out the Cloudformation which will be created run:
To deploy the infrastructure:
IF you were to make changes you can see what changes need to be applied with:
Once you have finished you can destroy the infrastructure with :