Skip to content

chore(deps): update cds-snc/terraform-plan action to v3.1.0 #402

chore(deps): update cds-snc/terraform-plan action to v3.1.0

chore(deps): update cds-snc/terraform-plan action to v3.1.0 #402

Workflow file for this run

name: Terraform plan
on:
workflow_dispatch:
pull_request:
paths:
- "terragrunt/**"
- ".github/workflows/**"
env:
AWS_REGION: ca-central-1
TERRAFORM_VERSION: 1.6.1
TERRAGRUNT_VERSION: 0.52.1
TF_VAR_api_auth_token: ${{ secrets.TF_VARS_API_AUTH_TOKEN }}
TF_VAR_notify_key: ${{ secrets.TF_VARS_NOTIFY_KEY }}
TF_VAR_rds_password: ${{ secrets.TF_VARS_RDS_PASSWORD }}
TF_VAR_slack_webhook_url: ${{ secrets.TF_VARS_SLACK_WEBHOOK_URL }}
permissions:
id-token: write
contents: read
pull-requests: write
jobs:
terraform-plan:
strategy:
fail-fast: false
matrix:
include:
- module: api
- module: hosted_zone
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Configure AWS credentials using OIDC
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT }}:role/list-manager-plan
role-session-name: TFPlan
aws-region: ${{ env.AWS_REGION }}
- name: Setup terraform tools
uses: cds-snc/terraform-tools-setup@v1
- name: Terraform plan
uses: cds-snc/terraform-plan@b84f6e89f3e7b5ecf648a2c036c043c73d82da59 # v3.1.0
with:
comment-delete: true
comment-title: Plan for ${{ matrix.module }}
directory: ./terragrunt/env/${{ matrix.module }}
github-token: ${{ secrets.GITHUB_TOKEN }}
terragrunt: true