Commit b6364e73 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'fix/remove-unnecessary-cli-option' into 'master'

fix: Remove -auto-approve from apply jobs with upstream plans

See merge request to-be-continuous/terraform!132
parents e1e2ebf1 fbf6481b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -880,7 +880,7 @@ stages:

    if [[ "$tf_plan" ]]; then
      log_info "--- applying upstream plan: \\e[33;1m${tf_plan}\\e[0m"
      terraform apply -auto-approve "$tf_plan"
      terraform apply "$tf_plan"
    else
      # implicit tfvars
      env_vars=$(ls -1 "${environment_type}.env.tfvars" 2>/dev/null || ls -1 "${environment_type}.env.tfvars.json" 2>/dev/null || echo "")