accroding to CDK Best Practice you are going to need to deploy CDK Pipeline for each stages.
- Node.js 18+
- AWSCLI
install depedencies
$ cd infra
$ npm i
```
bootstrap with Admin policy
```bash
$ npx cdk bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess```
create codecommit repository and set it to remote as codecommit
.
$ aws codecommit create-repository --repository-name cdk-pipeline-example
$ git remote add codecommit codecommit::ap-northeast-2://cdk-pipeline-example
$ git push codecommit main
deploy pipeline
$ cdk deploy
visit Codepipeline AWS Consonle, and check out the progress.
visit Lambda AWS Console and invoke the function with name starts with dev-LambdaStack-MyFunuctionxxx
.
$ cdk destroy