gruntwork-io / terragrunt-action

A GitHub Action for installing and running Terragrunt
Apache License 2.0
99 stars 38 forks source link

Error when apply from specific plan file #43

Closed spchortis closed 7 months ago

spchortis commented 7 months ago

Describe the bug Failed to execute TG apply from a plan file that was previously created

To Reproduce When creating a pipeline with the code below.

        - name: Plan
          uses: gruntwork-io/terragrunt-action@v2
          with:
            tf_version: ${{ env.tf_version }}
            tg_version: ${{ env.tg_version }}
            tg_dir: "${{ env.working_dir }}/${{ inputs.environment }}"
            tg_command: 'run-all plan -out tfplan-${{ inputs.environment }}'

        - name: Apply
          uses: gruntwork-io/terragrunt-action@v2
          with:
            tf_version: ${{ env.tf_version }}
            tg_version: ${{ env.tg_version }}
            tg_dir: "${{ env.working_dir }}/${{ inputs.environment }}"
            tg_command: 'run-all apply tfplan-${{ inputs.environment }}'

Expected behavior We expect run-all apply to be able to run from a plan file that was previously created. Works locally.

Nice to have

Versions

denis256 commented 7 months ago

Fixed since https://github.com/gruntwork-io/terragrunt-action/releases/tag/v2.0.1 if is used v2 then it should start to work automatically