From b7787d3da7d0f0460075b4b7a84d20dea86ba0dc Mon Sep 17 00:00:00 2001 From: Lucas Carlos Date: Wed, 18 Dec 2024 14:15:48 -0300 Subject: [PATCH 1/4] update init action for tofu --- .github/workflows/iac.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/iac.yml b/.github/workflows/iac.yml index 0341169c..2324addd 100644 --- a/.github/workflows/iac.yml +++ b/.github/workflows/iac.yml @@ -196,9 +196,9 @@ jobs: - name: Init id: init - uses: gruntwork-io/terragrunt-action@v1 + uses: gruntwork-io/terragrunt-action@v2.1.4 with: - tf_version: ${{ inputs.TF_VERSION }} + tofu_version: ${{ inputs.TF_VERSION }} tg_version: ${{ inputs.TG_VERSION }} tg_dir: ./${{ inputs.WORKING_DIR }} tg_command: 'run-all init' From 2a7a1c1316ad6b6c41977a724084914e89abecb0 Mon Sep 17 00:00:00 2001 From: Lucas Carlos Date: Wed, 18 Dec 2024 14:15:59 -0300 Subject: [PATCH 2/4] update init action for tofu --- .github/workflows/iac.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/iac.yml b/.github/workflows/iac.yml index 2324addd..92289a56 100644 --- a/.github/workflows/iac.yml +++ b/.github/workflows/iac.yml @@ -192,7 +192,7 @@ jobs: env: VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }} - - uses: opentofu/setup-opentofu@main + # - uses: opentofu/setup-opentofu@main - name: Init id: init From bac4e6818ef0ff8cddfd040a718451bb52b36d4f Mon Sep 17 00:00:00 2001 From: Lucas Carlos Date: Wed, 18 Dec 2024 14:19:42 -0300 Subject: [PATCH 3/4] update tofu version --- .github/workflows/iac.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/iac.yml b/.github/workflows/iac.yml index 92289a56..9d02a75a 100644 --- a/.github/workflows/iac.yml +++ b/.github/workflows/iac.yml @@ -198,7 +198,7 @@ jobs: id: init uses: gruntwork-io/terragrunt-action@v2.1.4 with: - tofu_version: ${{ inputs.TF_VERSION }} + tofu_version: 1.8.7 tg_version: ${{ inputs.TG_VERSION }} tg_dir: ./${{ inputs.WORKING_DIR }} tg_command: 'run-all init' From af17e39ceffbd2050ea8cc927f2590672c6560d2 Mon Sep 17 00:00:00 2001 From: Lucas Carlos Date: Wed, 18 Dec 2024 14:28:54 -0300 Subject: [PATCH 4/4] update tofu --- .github/workflows/iac.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/iac.yml b/.github/workflows/iac.yml index 9d02a75a..2565ba26 100644 --- a/.github/workflows/iac.yml +++ b/.github/workflows/iac.yml @@ -16,7 +16,7 @@ on: TF_VERSION: required: false type: string - default: '1.5.7' + default: '1.8.7' AWS_REGION: required: true type: string @@ -191,14 +191,12 @@ jobs: echo VAULT_TOKEN=$VAULT_TOKEN >> $GITHUB_ENV env: VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }} - - # - uses: opentofu/setup-opentofu@main - name: Init id: init uses: gruntwork-io/terragrunt-action@v2.1.4 with: - tofu_version: 1.8.7 + tofu_version: ${{ inputs.TF_VERSION }} tg_version: ${{ inputs.TG_VERSION }} tg_dir: ./${{ inputs.WORKING_DIR }} tg_command: 'run-all init' @@ -211,10 +209,10 @@ jobs: git config --global --list - name: Validate - uses: gruntwork-io/terragrunt-action@v1 + uses: gruntwork-io/terragrunt-action@v2.1.4 id: validate with: - tf_version: ${{ inputs.TF_VERSION }} + tofu_version: ${{ inputs.TF_VERSION }} tg_version: ${{ inputs.TG_VERSION }} tg_dir: ${{ inputs.WORKING_DIR }} tg_command: 'run-all validate' @@ -222,11 +220,11 @@ jobs: OVH_CLOUD_PROJECT_SERVICE: ${{ secrets.OVH_CLOUD_PROJECT_SERVICE }} - name: Plan - uses: gruntwork-io/terragrunt-action@v1 + uses: gruntwork-io/terragrunt-action@v2.1.4 id: plan continue-on-error: true with: - tf_version: ${{ inputs.TF_VERSION }} + tofu_version: ${{ inputs.TF_VERSION }} tg_version: ${{ inputs.TG_VERSION }} tg_dir: ${{ inputs.WORKING_DIR }} tg_command: 'run-all plan' @@ -269,10 +267,10 @@ jobs: - name: Apply if: github.ref == 'refs/heads/main' && github.event_name == 'push' - uses: gruntwork-io/terragrunt-action@v1 + uses: gruntwork-io/terragrunt-action@v2.1.4 id: apply with: - tf_version: ${{ inputs.TF_VERSION }} + tofu_version: ${{ inputs.TF_VERSION }} tg_version: ${{ inputs.TG_VERSION }} tg_dir: ${{ inputs.WORKING_DIR }} tg_command: 'run-all apply'