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

import google dns resource is always unsuccess. (2019/5/5) #10

Closed
sogaoh opened this issue May 5, 2019 · 1 comment
Closed

import google dns resource is always unsuccess. (2019/5/5) #10

sogaoh opened this issue May 5, 2019 · 1 comment

Comments

@sogaoh
Copy link

sogaoh commented May 5, 2019

I tried to get google dns resource, but failed.
The console output is like below:

cd /path/to/working_directory 

❯ ./terraformer import google --resources=dns --connect=true --projects=MY_PROJECT, --state=bucket
2019/05/05 13:35:52 google importing project MY_PROJECT
2019/05/05 13:35:52 google importing... dns
2019/05/05 13:35:55 project: required field is not set
2019/05/05 13:35:55 project: required field is not set
2019/05/05 13:35:55 project: required field is not set
2019/05/05 13:35:55 project: required field is not set
2019/05/05 13:35:55 project: required field is not set
2019/05/05 13:35:55 project: required field is not set
2019/05/05 13:35:55 project: required field is not set
2019/05/05 13:35:55 project: required field is not set
2019/05/05 13:35:55 project: required field is not set
2019/05/05 13:35:55 project: required field is not set
panic: interface conversion: interface {} is nil, not string

goroutine 1 [running]:
github.com/GoogleCloudPlatform/terraformer/gcp_terraforming.(*CloudDNSGenerator).PostConvertHook(0xc000168400, 0x2ff0980, 0xc000168400)
	/path/to/working_directory/gcp_terraforming/clouddns.go:125 +0x6a7
github.com/GoogleCloudPlatform/terraformer/cmd.Import(0x2ff0b60, 0xc0000b9e40, 0xc0004ae650, 0x1, 0x1, 0xc0000c6a50, 0x30, 0x2c20d86, 0x9, 0x7ffeefbff8c2, ...)
	/path/to/working_directory/cmd/import.go:88 +0x1ad
github.com/GoogleCloudPlatform/terraformer/cmd.newCmdGoogleImporter.func1(0xc0004c0780, 0xc000331a90, 0x0, 0x5, 0x0, 0x0)
	/path/to/working_directory/cmd/google.go:37 +0x34a
github.com/spf13/cobra.(*Command).execute(0xc0004c0780, 0xc000331a40, 0x5, 0x5, 0xc0004c0780, 0xc000331a40)
	/Users/ME/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:762 +0x465
github.com/spf13/cobra.(*Command).ExecuteC(0xc0004c0280, 0xc0000b9440, 0xc0000b9400, 0xc00047bf88)
	/Users/ME/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852 +0x2ec
github.com/spf13/cobra.(*Command).Execute(...)
	/Users/ME/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
github.com/GoogleCloudPlatform/terraformer/cmd.Execute(0x0, 0x0)
	/path/to/working_directory/cmd/root.go:34 +0x28
main.main()
	/path/to/working_directory/main.go:25 +0x22

I've upgraded terraform provider google 1.20 -> 2.0, but import google dns has failed as same.

@PaulKlumpp
Copy link

This one is fixed in the source since 11th of June 2019: ee5a188

sergeylanzman pushed a commit that referenced this issue Jun 4, 2022
sergeylanzman pushed a commit that referenced this issue Jun 4, 2022
sergeylanzman pushed a commit that referenced this issue Feb 7, 2023
* [WIP] add ionoscloud support

* [WIP] add ionoscloud support

* fix: fix set dcId for servers and lan

* vendor update

* docs: added documentations for ionoscloud

* feat: add nic and volume

* fix: remove unnecessary prints from server.go file (#3)

* feat: implement IP Block (#4)

* feat: implement backup unit (#2)

* feat: Implement K8s cluster (#5)

* feat: implement Kubernetes Nodepool (#6)

* fix: resolve import inconsistency (#7)

* fix: fix IONOS_TOKEN authentication (#9)

* feat: add extra checks for resources (#10)

* feat: implement target group (#8)

* fix: remove unnecessary check and test statement (#13)

* feat: implement network load balancer (#14)

* feat: implement NAT gateway (#12)

* feat: implement group (#11)

* feat: implement application load balancer (#15)

* feat: fix server corner cases. k8s server should not be written to plan.

* Implement firewall resource, fix name typo, change nic logic (#16)

* implement NLB forwarding rule (#17)

* Implement load balancer (#18)

* feat: implement NAT gateway rule (#19)

* fix: rename generator string (#20)

* feat: rename variable, add condition if server valid, firewall link to other resources

* feat: improve doc

* feat: use variables for hardcoded strings

* feat: link remaining resources

* doc: update README.md

* fix: add links to supported resources

* fix: add links to supported resources

* fix: remove 'Printf' calls from utils.go (#23)

* refactor: fix linter errors (#24)

---------

Co-authored-by: iblindu <iuliaioana.blindu@gmail.com>
Co-authored-by: cristi <cristian.mihai.guran@ionos.com>
Co-authored-by: cguran-ionos <cristian-mihai.guran@ionos.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants