Skip to content
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

needs support for terraform 1.5.5 #128

Open
Crater81 opened this issue Aug 22, 2023 · 2 comments
Open

needs support for terraform 1.5.5 #128

Crater81 opened this issue Aug 22, 2023 · 2 comments

Comments

@Crater81
Copy link

Hello,
The older terraform version destroy had -force parameter, whereas the newer one has "-auto-approve"

Code:
return_code, stdout, stderr = tf.destroy(auto_approve=True)

Output:

Error: Failed to parse command-line flags

flag provided but not defined: -force

For more help on using this command, run:
  terraform destroy -help
@Crater81
Copy link
Author

Please delete this line 155 from terraform.py:

default["force"] = force

@devdlewis
Copy link

As a workaround, you could use the following:

tf.cmd("destroy", "-auto-approve")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants