I am trying to manage google cloud infrastructure using terraform modules. We have existing infrastructure I would like to use modules to import them as well.
Next, I tried to import subnet as well using below command following google and some other documents. What ever I do I am unable to import the subnet, I saw the subnets module got for and for_each loops, Could someone advise how can I import subnets using gcloud modules?
Additionally, since most shells will treat double-quote characters as some form of shell syntax, you likely need to quote or escape them in some way, dependent on the shell being used.
Thank you, I grabbed screenshot of one of the resources. I the resource I tried to import is definitely in the plan as shown in the screenshot below. The subnet module got for and for_each loops and I am not sure what kind of input it accepts, Could you help?
Thank you for your help with this, Could you advise if you have imported google VPC network completely before and how you did it? I also attached screenshot of config files, please let me know if you see any issue.
This issue is fixed, one of my colleague pointed out it’s the shell issue, I need to use single quotes in the module option. Thank you for your contribution for this topic.