Skip to content

Commit

Permalink
fix: disable terraform interactive prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
leg100 committed Jan 16, 2025
1 parent 900fbe7 commit 272cabb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/runner/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,11 @@ func (o *operation) writeTerraformVars(ctx context.Context) error {
}

func (o *operation) terraformInit(ctx context.Context) error {
return o.execute([]string{o.terraformPath, "init"})
return o.execute([]string{o.terraformPath, "init", "-input=false"})
}

func (o *operation) terraformPlan(ctx context.Context) error {
args := []string{"plan"}
args := []string{"plan", "-input=false"}
if o.run.IsDestroy {
args = append(args, "-destroy")
}
Expand Down Expand Up @@ -536,7 +536,7 @@ func (o *operation) terraformApply(ctx context.Context) (err error) {
}
}()

args := []string{"apply"}
args := []string{"apply", "-input=false"}
if o.run.IsDestroy {
args = append(args, "-destroy")
}
Expand Down

0 comments on commit 272cabb

Please sign in to comment.