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-releaseorstg-releasebranch will deploy todevorstgenvironment like the command below;git push origin HEAD:dev-release -f
prd-releaseis dangerous, so you need to make a pull request to deploy toprdenvironment.
- 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.templateto.envand edit.envbased on your setting -
Then run dryrun,
python deploy.py --dryrun
if dryrun result is ok, then deploy
python deploy.py