Skip to content

Instantly share code, notes, and snippets.

@smalltown
Last active August 3, 2019 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smalltown/f5e92f0ff1d2e937ef340da3869cd470 to your computer and use it in GitHub Desktop.
Save smalltown/f5e92f0ff1d2e937ef340da3869cd470 to your computer and use it in GitHub Desktop.
repos:
- id: /.*/
# apply_requirements sets the Apply Requirements for all repos that match.
apply_requirements: [mergeable]
# workflow sets the workflow for all repos that match.
# This workflow must be defined in the workflows section.
allowed_overrides: [workflow]
# The deault workflow
workflow: terragrunt
# workflows lists server-side custom workflows
workflows:
terragrunt:
plan:
steps:
- run: terragrunt plan -no-color -out $PLANFILE
apply:
steps:
- run: terragrunt apply -no-color -auto-approve
central:
plan:
steps:
- run: terragrunt plan --terragrunt-iam-role "arn:aws:iam::1234567890123:role/atlantis" -no-color -out $PLANFILE
apply:
steps:
- run: terragrunt apply --terragrunt-iam-role "arn:aws:iam::1234567890123:role/atlantis" -no-color -auto-approve
development:
plan:
steps:
- run: terragrunt plan --terragrunt-iam-role "arn:aws:iam::2345678901234:role/atlantis" -no-color -out $PLANFILE
apply:
steps:
- run: terragrunt apply --terragrunt-iam-role "arn:aws:iam::2345678901234:role/atlantis" -no-color -auto-approve
staging:
plan:
steps:
- run: terragrunt plan --terragrunt-iam-role "arn:aws:iam::3456789012345:role/atlantis" -no-color -out $PLANFILE
apply:
steps:
- run: terragrunt apply --terragrunt-iam-role "arn:aws:iam::3456789012345:role/atlantis" -no-color -auto-approve
production:
plan:
steps:
- run: terragrunt plan --terragrunt-iam-role "arn:aws:iam::4567890123456:role/atlantis" -no-color -out $PLANFILE
apply:
steps:
- run: terragrunt apply --terragrunt-iam-role "arn:aws:iam::4567890123456:role/atlantis" -no-color -auto-approve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment