Description
Unable to import resources using terraform import [resource address] [resource ID]
Actual Behavior
Error is returned showing Error: [resource] (id=) not found
tf import -var-file=variables.tfvars cloudca_instance.cmc[0] cd63b525-0992-4121-b818-89f8b4fc731b
cloudca_instance.cmc[0]: Importing from ID "cd63b525-0992-4121-b818-89f8b4fc731b"...
cloudca_instance.cmc[0]: Import prepared!
Prepared cloudca_instance for import
cloudca_instance.cmc[0]: Refreshing state... [id=cd63b525-0992-4121-b818-89f8b4fc731b]
Error: Instance (id=) not found
Expected Behavior
I expect the resource to be imported and added to the terraform state file
Replication Case
- Manually create a resource in cloud.ca (an instance will do)
- Write the equivalent terraform code that would create the instance
- use `terraform import [resource_address] [resource ID]
Environment
Description
Unable to import resources using terraform import [resource address] [resource ID]
Actual Behavior
Error is returned showing Error: [resource] (id=) not found
Error: Instance (id=) not found
Expected Behavior
I expect the resource to be imported and added to the terraform state file
Replication Case
Environment
Terraform version (
terraform version): v0.12.29Provider version: v1.5.0
OS (e.g:
cat /etc/os-release):NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
PRETTY_NAME="Manjaro Linux"
ANSI_COLOR="32;2;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://manjaro.org/"
BUG_REPORT_URL="https://bugs.manjaro.org/"
LOGO=manjarolinux