Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add import functionality for Google Compute Engine resources #182

Closed
jvrplmlmn opened this issue Jul 9, 2017 · 5 comments
Closed

Add import functionality for Google Compute Engine resources #182

jvrplmlmn opened this issue Jul 9, 2017 · 5 comments
Assignees
Labels

Comments

@jvrplmlmn
Copy link

Terraform Version

$ terraform --version
Terraform v0.10.0-beta2-dev

Affected Resource(s)

Most Google Compute Engine resources lack the import functionality. An example: google_compute_instance.

@danawillow
Copy link
Contributor

Hey @jvrplmlmn, just for prioritization: which resources in particular would you like import support on? Obviously we'd like to include it for all of them but this will at least help us come up with an ordering.

@jvrplmlmn
Copy link
Author

Hi @danawillow, right now I'm mainly interested in google_compute_instance.

Is there any guide on how to write an importer function for Terraform? I might be able to contribute a patch if I get some guidance 😃

@danawillow danawillow self-assigned this Jul 12, 2017
@danawillow
Copy link
Contributor

danawillow commented Jul 12, 2017

Self-assigning but @rosbo will be working on this.

@jvrplmlmn there isn't a guide per se, but take a look at #40 for an example. google_compute_instance isn't quite as straightforward though, because it currently reads from state in the read function (you can tell from the d.Get(...)s) which won't work for import, so it'll need to stop doing that first.

@rosbo
Copy link
Contributor

rosbo commented Nov 14, 2017

Most compute resources now have import support. google_compute_instance doesn't have import support yet but there is a specific issue to address it (#269).

If there is a specific resource for which you would like to have import support, please open a new issue for that specific resource.

Closing this issue.

@rosbo rosbo closed this as completed Nov 14, 2017
@ghost
Copy link

ghost commented Mar 30, 2020

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 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
@github-actions github-actions bot added forward/review In review; remove label to forward service/compute-instances labels Jan 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants