/baseline

Primary LanguageTypeScript

baseline

Baseline of security, reliability, monitoring and cost.

Notification

2021-09-28 16:05~より、#AWSDevDayにて本リポジトリを用いたセッション、C-3 [AWS CDK] 1,000+のCloudWatch Alarmを自動生成する技術が開催されます。ぜひご視聴くださいませ!

なお、登壇資料はこちらです。

Sponsored

本リポジトリの内容は、保険SaaSを提供するjustInCaseでの取り組みを基にしています。
絶賛採用中ですので、ご興味を持っていただけた方はぜひ面談しましょう!

Useful commands

# set one of them
export CDK_BIN=baseline-root
export CDK_BIN=baseline-dynamic

# set environment variables
export $(cat .env)
  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • yarn cdk deploy --context envName=${ENV_NAME} --context orgRootAccountId=${ORG_ROOT_ACCOUNT_ID} deploy this stack to your default AWS account/region
  • yarn cdk diff --context envName=${ENV_NAME} --context orgRootAccountId=${ORG_ROOT_ACCOUNT_ID} compare deployed stack with current state
  • yarn cdk synth --context envName=${ENV_NAME} --context orgRootAccountId=${ORG_ROOT_ACCOUNT_ID} emits the synthesized CloudFormation template

Reference

Styleguide

Official