How to access terraform input variables using import

576 Views Asked by At

I'm trying to use the terraform import flow with input variables, like this:

terraform import -var-file=values.tfvars.json ADDR ID

According to what I read the flow goes throught the import function and the read function. It seems that I can not access the values that was passed usig the -var-file property in neither one of those functions (import\read).

Is it possible to do so? if not, I would expect this command to ignore the required values of this solution.

0

There are 0 best solutions below