Skip to content

Question: How to run Terraform in scheduler without manual confirmation? #2810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kovalroma opened this issue Mar 18, 2025 · 3 comments
Open
Assignees
Labels
Milestone

Comments

@kovalroma
Copy link

Question

I'm trying to run Terraform code without requiring manual confirmation. I added the -auto-approve flag, but I'm getting an error

4:52:19 PM
│ Error: Failed to parse command-line flags
4:52:19 PM
│ 
4:52:19 PM
│ flag provided but not defined: -auto-approve
4:52:19 PM
╵
4:52:19 PM
╷
4:52:19 PM
│ Error: Too many command line arguments
4:52:19 PM
│ 
4:52:19 PM
│ To specify a working directory for the plan, use the global -chdir flag.

Image

Has anyone successfully configured Terraform in Semaphore to run without confirmation? Are there any special settings or workarounds needed?

Thanks!

Related to

No response

@fiftin
Copy link
Collaborator

fiftin commented Mar 22, 2025

Must me implemented.

@fiftin fiftin self-assigned this Mar 22, 2025
@fiftin fiftin added this to the 2.13 milestone Mar 22, 2025
@ramorous
Copy link

ramorous commented Apr 1, 2025

Really need this one myself to enable some automations and enforce some DEV/QA environments on developers

@xiaokang5350
Copy link

I also need this.

@fiftin fiftin modified the milestones: 2.13, 2.14 Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants