hashicorp / terraform-cdk

Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
https://www.terraform.io/cdktf
Mozilla Public License 2.0
4.88k stars 455 forks source link

CLI: --auto-approve has no effect #3736

Closed JamesNSmith closed 1 month ago

JamesNSmith commented 1 month ago

Expected Behavior

--auto-approve to allow a deployment without a confirmation of changes

Actual Behavior

--auto-approve has no effect

Steps to Reproduce

cdktf deploy (stackName) --auto-approve

Versions

0.20.9

Providers

External Error: Could not determine cdktf version. Please make sure you are in a directory containing a cdktf project and have all dependencies installed.

(cdktf list works as expected)

"@cdktf/provider-azuread": "^12.0.0", "@cdktf/provider-azurerm": "^12.0.0", "@cdktf/provider-mongodbatlas": "^7.6.0",

Gist

No response

Possible Solutions

No response

Workarounds

No response

Anything Else?

No response

References

No response

Help Wanted

Community Note

JamesNSmith commented 1 month ago

A configuration issue in package.json caused weird behaviour for local package managed clis. This made -- commands fail.

github-actions[bot] commented 2 weeks ago

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.