AWS User Group Taiwan 在 AWS & Twitch Hack‘n'Roll Workshop 的訓練教程專案。 演示利用 AWS CDK 開發 Lambda 與 Fargate 應用程式,並利用其他 AWS 服務解決問題。
註:爲避免不必要的 rebase,文檔更新只推送到 master branch
- git
- nodejs
- docker
- Mac 可安裝 Docker Desktop
- Windows 若未包含 Hyper-V 可安裝 Docker Toolbox
- AWS CDK
% npm install -g cdk
- 註冊 氣象資料開放平臺 會員並取得授權碼
先在專案目錄下執行 npm run installll
以安裝專案與 asset 的套件。
註:現建議將 AWS SDK 明確加入 asset dependency 中,避免 Lambda 執行環境自帶的版本過舊。
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template