Transacting indexing and processing pipeline for Castle Labs vaults. Built with AWS CDK + TypeScript.
Pre-requisites
Getting Started
Run the following commands to install dependencies, build the CDK stack, and deploy the CDK Stack to AWS.
yarn install
yarn --cwd ./src/heartbeat install
yarn build
cdk bootstrap --profile=castle // or whatever AWS profile you're using
cdk deploy --profile=castle // or whatever AWS profile you're using
We need to define a few environment variables for the cdk-deploy
GitHub Action to work:
AWS_ACCESS_KEY_ID
- The access key ID for theheartbeat-deploy
IAM userAWS_SECRET_ACCESS_KEY
- The secret access key for theheartbeat-deploy
IAM userAWS_REGION
- The AWS region to which the resulting Cloudformation stack is deployed. We currently only deploy tous-east-1
DATADOG_API_KEY
- Datadog API key for Lambda logging + monitoring
yarn install
- installs dependenciesyarn build
- builds the production-ready CDK Stackyarn test
- runs Jestcdk bootstrap
- bootstraps AWS Cloudformation for your CDK deploycdk deploy
- deploys the CDK stack to AWS
Built with
Additional Resources
- CDK API Reference
- CDK TypeScript Reference
- CDK Assertion Package
- CDK Datadog Constructs
- awesome-cdk repo
License
Closed source.
Built with ❤️ by Castle Labs