-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1.05 KB
/
terragrunt-plan-all.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Terragrunt Plan All (dry run)
on:
pull_request:
branches:
- main
paths:
- ".github/workflows/**"
- "terraform/**"
jobs:
plan:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- { os: "ubuntu-latest", account: "non-prod", env: "test" }
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
steps:
- uses: actions/checkout@v2
- name: Install terraform terragrunt
run: brew install terraform terragrunt
- name: Get terraform terragrunt versions
run: |
terraform --version \
terragrunt --version
- name: Terragrunt run-all plan
run: |
terragrunt run-all plan \
--terragrunt-non-interactive \
--terragrunt-parallelism 1 \
--terragrunt-working-dir terraform/terragrunt/${{ matrix.config.account }}/${{ matrix.config.env }}