Cloudformation with Github Actions sample repository.
japanese article -> ぼくのかんがえたさいきょうのGithub Actionsで複数のCloudFormationファイルをCI/CDする方法 - Qiita
You can
- Run CI(linter, dryrun) and see the result on pull request
- example: #2
- Deploy easily;
- If you force-push to
dev-release
orstg-release
branch will deploy todev
orstg
environment like the command below;git push origin HEAD:dev-release -f
prd-release
is dangerous, so you need to make a pull request to deploy toprd
environment.
- If you force-push to
You need to create s3 bucket to put yaml files.
The bucket name is like this;
${ENV}-${PROJECT_NAME}-infra-cfn
-
Download direnv
-
Copy
.env.template
to.env
and edit.env
based on your setting -
Then run dryrun,
python deploy.py --dryrun
if dryrun result is ok, then deploy
python deploy.py