Skip to content

chore(deps): lock file maintenance (#207) #121

chore(deps): lock file maintenance (#207)

chore(deps): lock file maintenance (#207) #121

Workflow file for this run

name: Terraform Apply
on:
push:
branches:
- main
paths:
- "terragrunt/**"
- ".github/workflows/tf-apply.yml"
env:
AWS_REGION: ca-central-1
TERRAFORM_VERSION: 1.8.2
TERRAGRUNT_VERSION: 0.58.3
TF_VAR_cloudwatch_alert_slack_webhook: ${{ secrets.CLOUDWATCH_ALERT_SLACK_WEBHOOK }}
TF_VAR_google_oauth_client_id: ${{ secrets.GOOGLE_OAUTH_CLIENT_ID }}
TF_VAR_google_oauth_client_secret: ${{ secrets.GOOGLE_OAUTH_CLIENT_SECRET }}
TF_VAR_superset_database_username: ${{ secrets.SUPERSET_DATABASE_USERNAME }}
TF_VAR_superset_database_password: ${{ secrets.SUPERSET_DATABASE_PASSWORD }}
TF_VAR_superset_secret_key: ${{ secrets.SUPERSET_SECRET_KEY }}
permissions:
id-token: write
contents: read
jobs:
terragrunt-apply:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Audit DNS requests
uses: cds-snc/dns-proxy-action@main
env:
DNS_PROXY_FORWARDTOSENTINEL: "true"
DNS_PROXY_LOGANALYTICSWORKSPACEID: ${{ secrets.LOG_ANALYTICS_WORKSPACE_ID }}
DNS_PROXY_LOGANALYTICSSHAREDKEY: ${{ secrets.LOG_ANALYTICS_WORKSPACE_KEY }}
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: setup terraform tools
uses: cds-snc/terraform-tools-setup@v1
- name: configure aws credentials using OIDC
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
role-to-assume: arn:aws:iam::${{ vars.PROD_AWS_ACCOUNT_ID }}:role/cds-superset-apply
role-session-name: TFApply
aws-region: ${{ env.AWS_REGION }}
- name: Apply Terraform
working-directory: terragrunt
run: terragrunt apply --terragrunt-non-interactive -auto-approve