Created from this blog post.
-
Node LTS (>= 14 recommended)
-
Yarn
-
Run
yarn --frozen-lockfile
to install dependencies. -
Deploy the OIDC stack first using
yarn cdk deploy GithubOidcStack
so that you have the role ARN to add as a GitHub repository secret. -
Then manually dispatch the workflow for deploying
TestInfraStack
which will then fetch temporary credentials from AWS and runcdk deploy
.
The cdk.json
file tells the CDK Toolkit how to execute your app.
yarn build
compile typescript to jsyarn watch
watch for changes and compileyarn test
perform the jest unit testsyarn cdk deploy
deploy this stack to your default AWS account/regionyarn cdk diff
compare deployed stack with current stateyarn cdk synth
emits the synthesized CloudFormation template