I have Terraform Cloud set up to store my state and manage my workspaces.
I need to import a resource into one of my resources, so I thought I’d try
terraform import <addr> <id>
However, I got a lot of warnings of the type:
Warning: Value for var.xyz unavailable The value of variable "xyz" is marked as sensitive in the remote workspace. This operation always runs locally, so the value for that variable is not available.
I created an auto.tfvar file and tried
tf import -var-file=local.auto.tfvars <addr> <id>
again, no luck.
So, I get what the warnings are saying, but I can’t fathom a way to pass values in.