scastria / terraform-provider-apigee

Mozilla Public License 2.0
21 stars 19 forks source link

Resource instance key must be given in square brackets. #31

Closed NAbiKeerthana closed 2 years ago

NAbiKeerthana commented 3 years ago

Hello @scastria ,

When I try to import the already existing apigee reference with below command,

-terraform import apigee_reference.apis-demo.gcp non-prod:apis-demo.gcp

I am getting the below error,

2021-11-02T06:57:51.162Z [INFO] CLI command args: []string{"import", "apigee_reference.apis-demo.gcp-ref", "non-prod:apis-demo.gcp-ref"}

│ Error: Invalid address │ │ on line 1: │ 1: apigee_reference.apis-demo.gcp │ │ Resource instance key must be given in square brackets.

Could you please help me with a solution for this issue ?

scastria commented 2 years ago

This is a terraform generic question and not specific to the Apigee provider. Therefore, please seek help in the terraform community.