-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 919 Bytes
/
test.yml
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
name: Terraform Plan Generic Modules
on:
push:
branches:
- monorepo
pull_request:
branches:
- main
jobs:
modules:
runs-on: ubuntu-latest
steps:
- uses: theappnest/terraform-monorepo-action@master
id: modules
with:
monitored: 'main.tf'
outputs:
modules: ${{ steps.modules.outputs.modules }}
terraform:
needs: modules
strategy:
matrix:
module: ${{ fromJson(needs.modules.outputs.modules) }}
uses: appvia/appvia-cicd-workflows/.github/workflows/terraform-plan.yml@main
name: Terraform
secrets:
infracost-api-key: ${{ secrets.ORG_INFRACOST_API_KEY }}
with:
aws-account-id: 536471746696
enable-infracost: true
terraform-version: 1.5.7
terraform-values-file: '${{ fromJson(needs.modules.outputs.modules) }}/values/production.tfvars'
working-directory: ${{ matrix.module }}