In this example, it will use AWS CDK to deploy CloudFormation Stack. After cloudformation deployed, you will get a codebuild with github source.
- checkout the code at cloud9
npm install
- deploy the code to aws lambda
cdk.json
: cdk configuration. I add"requireApproval": "never"
to autocomple without console interrupt.CodeBuild\create-codebuild.js
is CDK javascriptCodeBuild/index.handler
is AWS Lambda handler