Skip to content

Commit

Permalink
🐛 fix entrypoint (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
chassing authored Aug 27, 2024
1 parent e6dd04b commit d65c40a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ if [[ $ACTION == "Apply" ]]; then
if [[ $DRY_RUN == "True" ]]; then
cdktf plan --skip-synth
terraform -chdir="$CDKTF_OUT_DIR" show -json "$CDKTF_OUT_DIR"/plan > "$CDKTF_OUT_DIR"/plan.json
test -f validate_plan.py && python3 validate_plan.py "$CDKTF_OUT_DIR"/plan.json
if [ -f "validate_plan.py" ]; then
python3 validate_plan.py "$CDKTF_OUT_DIR"/plan.json
fi
elif [[ $DRY_RUN == "False" ]]; then
cdktf apply \
--skip-synth \
Expand Down

0 comments on commit d65c40a

Please sign in to comment.