-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unable to import GCE Instance #156
Comments
I checked Test command in my project and it's working. |
@sergeylanzman Thanks. (Possibly user setup or permissions error on my end.) I tried find . -name *.log but didn't find anything that looked applicable to my command run In case terraform/provider versions are relevant:
|
it's stdout
|
same issue here both terraform 0.11.14 / 0.12.6 with terraformer v0.7.7 (and below) don't import GCE instances:
but there are instances in that project in Region (europe-west4) or Zone (europe-west4-b):
|
@sergeylanzman It seems other people are able to re-create the issue. Are Waze SRE team able to assign someone to this issue? |
I suppose that it is because of behavior stated in issue #160 : terraformer gets instances from one zone inside region. In my example it iterates through europe-west4 c->b->a
and last zone (a) doesn't have any instances - so nothing is imported |
Thank you for report! fixed |
Unable to import instances.
Using latest code base (cloned July 29th)
Is it necessary to specify zone or just region ?
I see some examples using --zone however that no longer appears to be a valid flag.
(I am able to import networks, firewalls ok, so the basic setup seems OK)
Test command
terraformer plan google --resources=instances --projects=deploy-247818 --regions=us-central1
redfivegcp@dev:~/tfimport$ cat generated/google/deploy-247818/terraformer/us-central1/plan.json
{
"Version": "v0.7.6",
"Provider": "google",
"Options": {
"Resources": [
"instances"
],
"PathPattern": "{output}/{provider}/deploy-247818/{service}/us-central1/",
"PathOutput": "generated",
"State": "local",
"Bucket": "",
"Profile": "",
"Zone": "",
"Regions": [
"us-central1"
],
"Projects": [
"deploy-247818"
],
"Connect": true,
"Filter": []
},
"Args": [
"us-central1",
"deploy-247818"
],
"ImportedResource": {
"instances": null
}
}
The text was updated successfully, but these errors were encountered: