How to use the provisioner local-exec with Terrafrom CDK. We will use the local exec command for executing az rest ..
commands.
We tried this but it was not working for us, it was not recognized the null provider.
Summarized we want to exec command lines with Terraform code!
Any suggestion how we should handle this?
Thanks,
When following that example, you’ll need to run cdktf get
after adding the null provider to cdktf.json
. Alternatively you can install the prebuilt version (npm install @cdktf/provider-null
) and slightly change the import statement.
Support for Provisioners · Issue #411 · hashicorp/terraform-cdk · GitHub is the issue tracking something more built-in.
1 Like