kindlyops / bazel-cdk-demo

☁️Examples of using bazel with AWS CDK, typescript, and docker ☕

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bazel-cdk-demo

initial setup

  • yarn create @bazel com_kindlyops_bazel_cdk_demo --typescript

updating after changing packages in package.json

After updating package versions or adding packages run

bazel run @nodejs//:yarn

run cdk commands

bazel run cdk -- ls

If you have direnv set up we have a wrapper script called cdk in ./scripts

generate a tar of the synthesized CDK output

This is useful as a build artifact for deployment in a pipeline

bazel build synth

To add a new go dependency, run gazelle

For example, to add a dependency on the aws-sdk-go library, run

bazel run //:gazelle -- update-repos github.com/aws/aws-sdk-go

About

☁️Examples of using bazel with AWS CDK, typescript, and docker ☕

License:Apache License 2.0


Languages

Language:Starlark 52.8%Language:TypeScript 33.2%Language:JavaScript 8.1%Language:Go 5.7%Language:Shell 0.2%