This is a basic CDK TypeScript example that deploys 2 AWS Lambda functions. One function will be used to put an object into Amazon S3, the second Lambda function is used to generate a pre-signed url that will be used to download the object from Amazon S3.
- The following prerequisities are required for this example
npm install -g typescript
npm install -g aws-cdk
Install Jupyter Notebook following instructions on this 'site'.
- Since this CDK project uses 'Assests', you might need to run the following command to provision resources the AWS CDK will need to perform the deployment.
cdk bootstrap
- Install the dependencies
npm install
- Execute cdk synth to synthesize as AWS CloudFormation template
cdk synth
- Execute cdk deploy to deploy the template and build the stack
cdk deploy
-
Open the Jupyter Notebook in the jupyter_notebook directory follow the instructions.
-
Check the Amazon S3 bucket for the objects.