CDK テンプレートです。
本プロジェクトをビルド・デプロイするために必要なソフトウェア・設定
- Prerequisites - Getting started with the AWS CDK
- Node.js 10.3.0 or later
- Yarn
- AWS CLI 2
- AWS CLI 設定ファイルと認証情報ファイルの設定
# 依存モジュールのインストール
yarn
# ビルド
yarn build
# デプロイ
yarn deploy
hogehoge
を適当な値に置換(ファイル名も変更する)xxxxx
を適当な AWSアカウントID に置換
cdk
コマンドについては AWS CDK Toolkit を参照してください。
command | description |
---|---|
yarn build |
build (TypeScript transpile) |
yarn clean |
remove build output |
yarn test |
run unit tests |
yarn test -u |
update snapshots |
yarn lint |
statically analyze the code |
yarn lint --fix |
statically analyze the code and format the code |
yarn typedoc |
generate Typedoc |
yarn stacks |
cdk list |
yarn context |
cdk context |
yarn diff |
cdk diff |
yarn synth |
cdk synth |
yarn deploy |
cdk deploy |
yarn destroy |
cdk destroy |
yarn bootstrap |
cdk bootstrap |
AWS CDK の app
テンプレートを利用したプロジェクトに、いくつかのディレクトリ・ファイルを追加した形式です。
cdk-hogehoge
├── bin
├── lib
├── test
├── .editorconfig
├── .eslintignore
├── .eslintrc.yml
├── .gitignore
├── .npmignore
├── cdk.json
├── jest.config.js
├── package.json
├── README.md
├── tsconfig.json
├── typedoc.json
└── yarn.lock