Skip to content

Commit

Permalink
replace provider
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmellos committed Dec 22, 2023
1 parent 2dfa348 commit 935be24
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/iac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
TF_VERSION:
required: false
type: string
default: '1.6.6'
default: '0.53.2'
AWS_REGION:
required: true
type: string
Expand Down Expand Up @@ -143,32 +143,32 @@ jobs:
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}

- name: init
uses: the-commons-project/terragrunt-github-actions@master
uses: gruntwork-io/terragrunt-[email protected]
with:
tf_actions_version: ${{ inputs.TF_VERSION }}
tg_actions_version: ${{ inputs.TG_VERSION }}
tf_actions_working_dir: ${{ inputs.WORKING_DIR }}
tf_actions_subcommand: init
tf_version: ${{ inputs.TF_VERSION }}
tg_version: ${{ inputs.TG_VERSION }}
tg_dir: ${{ inputs.WORKING_DIR }}
tg_command: 'run-all init --terragrunt-non-interactive'

- name: Terragrunt validate
id: validate
uses: the-commons-project/terragrunt-github-actions@master
uses: gruntwork-io/terragrunt-[email protected]
with:
tf_actions_version: ${{ inputs.TF_VERSION }}
tg_actions_version: ${{ inputs.TG_VERSION }}
tf_actions_working_dir: ${{ inputs.WORKING_DIR }}
tf_actions_subcommand: validate --terragrunt-non-interactive
tf_version: ${{ inputs.TF_VERSION }}
tg_version: ${{ inputs.TG_VERSION }}
tg_dir: ${{ inputs.WORKING_DIR }}
tg_command: run-all validate --terragrunt-non-interactive
env:
OVH_CLOUD_PROJECT_SERVICE: ${{ secrets.OVH_CLOUD_PROJECT_SERVICE }}

- name: Terragrunt plan
id: plan
uses: the-commons-project/terragrunt-github-actions@master
uses: gruntwork-io/terragrunt-[email protected]
with:
tf_actions_version: ${{ inputs.TF_VERSION }}
tg_actions_version: ${{ inputs.TG_VERSION }}
tf_actions_working_dir: ${{ inputs.WORKING_DIR }}
tf_actions_subcommand: run-all plan -no-color --terragrunt-non-interactive > plan.txt
tf_version: ${{ inputs.TF_VERSION }}
tg_version: ${{ inputs.TG_VERSION }}
tg_dir: ${{ inputs.WORKING_DIR }}
tg_command: run-all plan -no-color --terragrunt-non-interactive > plan.txt
env:
TF_VAR_do_token: ${{ secrets.TF_VAR_DO_TOKEN }}
OS_AUTH_URL: https://auth.cloud.ovh.net/v3
Expand Down Expand Up @@ -246,12 +246,12 @@ jobs:

- name: Terragrunt apply-all
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: the-commons-project/terragrunt-github-actions@master
uses: gruntwork-io/terragrunt-[email protected]
with:
tf_actions_version: ${{ inputs.TF_VERSION }}
tg_actions_version: ${{ inputs.TG_VERSION }}
tf_actions_working_dir: ${{ inputs.WORKING_DIR }}
tf_actions_subcommand: apply-all --terragrunt-non-interactive
tf_version: ${{ inputs.TF_VERSION }}
tg_version: ${{ inputs.TG_VERSION }}
tg_dir: ${{ inputs.WORKING_DIR }}
tg_command: apply-all --terragrunt-non-interactive
env:
TF_VAR_do_token: ${{ secrets.TF_VAR_DO_TOKEN }}
OS_AUTH_URL: https://auth.cloud.ovh.net/v3
Expand Down

0 comments on commit 935be24

Please sign in to comment.