Skip to content

Commit

Permalink
Fix tf plan show issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfholgate committed Oct 23, 2024
1 parent 1441e84 commit 5483953
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ stages:
targetPath: '$(Build.ArtifactsStagingDirectory)'
artifact: 'module'
publishLocation: 'pipeline'
- pwsh: terraform show tfplan
- pwsh: |
terraform `
-chdir="$${{ parameters.root_module_folder_relative_path }}" `
show `
tfplan
displayName: Show the Plan for Review
- stage: apply
displayName: Apply
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: |
# shellcheck disable=SC2086
terraform \
-chdir="$${inputs.root_module_folder_relative_path}}" \
plan \
-out=tfplan \
-input=false \
Expand All @@ -73,7 +73,10 @@ jobs:
path: ./staging/

- name: Show the Plan for Review
run: terraform show tfplan
run: terraform \
-chdir="$${inputs.root_module_folder_relative_path}}" \
show \
tfplan

apply:
needs: plan
Expand Down

0 comments on commit 5483953

Please sign in to comment.