本リポジトリの解説記事を以下で公開しています。 https://yoshinori-satoh.com/blog/2019-11-17-ecs-fargate-cicd-via-cdk/
scripts/ssm-parameters-sample.json
を複製し、ファイル名をscripts/ssm-parameters-dev.json
のように、sample部分を環境名にして、パラメータを記述。
以下コマンドを実行
./scripts/ssm-parameter-regist.sh dev
URLを上記の方法で登録しようとすると、エラーとなってしまうため、以下パラメータについては手動で登録する。
- /Example/<Dev|Prod>/App/Laravel/Env/AppUrl
以下をAWSコンソールから手動で登録する。
- /Example/<Dev|Prod>/Cd/Git
- /Example/<Dev|Prod>/Cd/Git/SshKey
- /Example/<Dev|Prod>/App/Laravel/Git
以下コマンドを実行
develop
./scripts/example-deploy-dev.sh
prod
./scripts/example-deploy-prod.sh