hashicorp / hashicorp/terraform-exec

Adding "-auto-approve" as an optional flag to the SDK.

Open
#534 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
786
Forks
129
PR merge metrics
No merged PRs in 30d

Description

Hi all,
I’ve observed that most Terraform operations are run with `-auto-approve` by default, so there isn’t always an opportunity to review the resources that will be created or destroyed. Do you think it would be useful to add support in the SDK for reviewing changes before they’re applied?

Ref: https://github.com/hashicorp/terraform-exec/blob/7ae12dd2176573ec55c9b5c84542d1b466efce54/tfexec/apply.go#L176

Thanks!

Contributor guide

Open the contributing guide

Research direction

Start with the referenced apply.go location and review how the SDK currently handles Terraform apply options. Confirm the intended optional -auto-approve behavior and how review-before-apply should work; done means callers can choose whether approval is required when applying changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, terraform
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.