Skip to content

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

@kovalroma

Description

@kovalroma

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

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions