AWS CDK 写経

はじめに

AWS CDK チュートリアル の写経です

動かし方

1. clone直後にやること

cd <本リポジトリをcloneした場所>
npm ci

2. デプロイ

cdk deploy
# 一定時間経過後、リソースが作られる
# 成功したら、以下のようにAPI GatewayのURLが表示される
# Outputs:
# CdkWorkshopStack.apiEndpoint9349E63C = <API GatewayのURL>

3. 動作確認

  1. ブラウザで以下にアクセス
https://<API GatewayのURL>/I can't stop thinking about stuff and my sleep is terrible
  1. ブラウザに以下のようなメッセージが表示される。(メッセージは毎回変わる)
{"You":"I can't stop thinking about stuff and my sleep is terrible","ELIZA":"You say you can't stop thinking about stuff and my sleep is terrible ?"}