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
I'm running into an issue where I may be doing something wrong, but it also might just be a bug.
When I try to import an already existing network and subnetwork into my terraform template, I get the following error:
Error importing: 1 error(s) occurred:
google_compute_subnetwork.wdas-172-30-64 (import id: us-west1/wdas-172-30-64): Can't import google_compute_subnetwork.wdas-172-30-64, would collide with an existing resource.
Please remove or rename this resource before continuing.
If you see us-west1/wdas-172-30-64 (or some other value for the id) then that means that resource has already been imported and you can begin defining what you want the resource to look like in your terraform config.
Does that sound right? This page has a lot of details on how to use import but I agree that it can be confusing.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Mar 30, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm running into an issue where I may be doing something wrong, but it also might just be a bug.
When I try to import an already existing network and subnetwork into my terraform template, I get the following error:
Error importing: 1 error(s) occurred:
Please remove or rename this resource before continuing.
Terraform Version
Terraform v0.10.4
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform import google_compute_subnetwork.net-172-30-64 us-west1/net-172-30-64
terraform import google_compute_network.net-gcp-net net-gcp-net
terraform apply
The text was updated successfully, but these errors were encountered: