You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thbriggs
changed the title
Importing proxy only subnet is successful but then not saved in state
Importing proxy only subnet is successful but then not saved in state. terraform plan shows subnet being created
May 10, 2024
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
The text was updated successfully, but these errors were encountered: