mirror of https://github.com/smithy-lang/smithy-rs
446326c537
## Motivation and Context
See [rendered
RFC](
|
||
---|---|---|
.. | ||
bin | ||
canary-lambda | ||
canary-runner | ||
lib | ||
test | ||
.eslintrc.json | ||
.gitignore | ||
.npmignore | ||
.prettierrc | ||
LICENSE | ||
README.md | ||
cdk.json | ||
jest.config.js | ||
package-lock.json | ||
package.json | ||
tsconfig.json |
README.md
CI CDK
This is the CDK infrastructure as code for smithy-lang/smithy-rs and awslabs/aws-sdk-rust continuous integration.
The cdk.json
file tells the CDK Toolkit how to synthesize the infrastructure.
Canary local development
Sometimes it's useful to only deploy the canary resources to a test AWS account to iterate
on the canary-runner
and canary-lambda
. To do this, run the following:
npm install
npm run build
npx cdk --app "node build/bin/canary-only.js" synth
npx cdk --app "node build/bin/canary-only.js" deploy --outputs-file cdk-outputs.json
From there, you can just point the canary-runner
to the cdk-outputs.json
to run it:
cd canary-runner
cargo run -- run --sdk-release-tag <version> --musl --cdk-outputs ../cdk-outputs.json
NOTE: You may want to add a --profile
to the deploy
command to select a specific credential
profile to deploy to if you don't want to use the default.
Also, if this is a new test AWS account, be sure it CDK bootstrap it before attempting to deploy.
Useful commands
npm run lint
: lint codenpm run format
: auto-format codenpm run build
: compile typescript to jsnpm run watch
: watch for changes and compilenpm run test
: perform the jest unit testsnpx cdk deploy
: deploy this stack to your default AWS account/regionnpx cdk diff
: compare deployed stack with current statenpx cdk synth
: emits the synthesized CloudFormation template