This is code sample that uses CDK to:
- Create a Lambda function that can be invoked using API Gateway
- Create a CI using CodeSuite that deploys the Lambda+ApiGateway resources using
cdk deploy
- Ensure you've followed the guide to Getting Started to AWS CDK, and you have CDK installed, and the AWS SDK installed and credentials configured.
- Bootstrap your AWS environment
- Create a CodeCommit repository. See this documentation for help.
- Place the contents of this folder inside it
- Set the repository name in the
repositoryName
prop inbin/ci.ts
. - Build the stack with
npm run build
- Deploy the CI stack with
cdk deploy
Todo
summarize permissions- If you'd like to deploy just the Lambda+ApiGateway stack, you can do so with
cdk deploy -a "npx ts-node bin/lambda.ts"
- If you'd like to deploy just the Lambda+ApiGateway stack, you can do so with