Import Existing Resource into Terraform Configuration

#terraform import ADDRESS ID
#terraform import google_compute_network.vpc-1 vpc-1
Error: resource address "google_compute_network.vpc-1" does not exist in the configuration.

HashiCorp is working on the new version of Terraform that could generate the configuration during import. As of version 1.1.4, this is still not available.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store