cdktf diff command with variables pass

509 Views Asked by At

Can you suggest how can i use cdktf diff to pass multiple var in cli? terraform plan -var "resourceName=testrg" -var "resourcelocation=eastus" Similar like above needed in cdktf.

1

There are 1 best solutions below

2
On

You can set them by environment variables. In this example you could do TF_VAR_resourceName=testrg TF_VAR_resourcelocatio=eastus cdktf plan.