Skip to content

Commit

Permalink
Run terraform init on missing required provider
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfheimer authored Nov 15, 2023
1 parent 95fc56f commit 63ea8e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hooks/terraform_validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function match_validate_errors {
"Module version requirements have changed") return 1 ;;
"Module not installed") return 1 ;;
"Could not load plugin") return 1 ;;
"Missing required provider") return 1 ;;
*"there is no package for"*"cached in .terraform/providers") return 1 ;;
esac
done < <(jq -rc '.diagnostics[]' <<< "$validate_output")
Expand Down

0 comments on commit 63ea8e9

Please sign in to comment.