Closed thbriggs closed 4 months ago
I realized I was importing the subnet wrong in the module after all.
This formatting worked. The bracketed, quoted subnet name was what I was missing.
terraform import 'module.subnetwork.google_compute_subnetwork.subnet["test-2"]' projects/[project name]/regions/us-east4/subnetworks/test-2
TL;DR
If I try to import an existing proxy only subnet I get a message saying its successful but then it doesnt show up in state.
Expected behavior
subnet to become part of state for being managed by terraform
Observed behavior
terraform plan shows a creation of the subnet
Terraform Configuration
Terraform Version
Additional information
No response