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

Error when import using Google provider #1857

Closed
ivanrivai-smma opened this issue Mar 25, 2024 · 2 comments
Closed

Error when import using Google provider #1857

ivanrivai-smma opened this issue Mar 25, 2024 · 2 comments

Comments

@ivanrivai-smma
Copy link

when i try to run this command:
terraformer import google --projects xxx --resources=firewall --regions asia-southeast2

got this error below:
2024-03-25T13:47:02.043+0700 [ERROR] plugin.terraform-provider-google_v5.21.0_x5: Response contains error diagnostic: diagnostic_attribute=""
diagnostic_detail=
| An unexpected error was encountered trying to build a value. This is always an error in the provider. Please report the following to the provider developer:
|
| Received null value, however the target type cannot handle null values. Use the corresponding types package type, a pointer type or a custom type that handles null values.
|
| Path:
| Target Type: fwmodels.ProviderModel
| Suggested types Type: basetypes.ObjectValue
| Suggested Pointer Type: *fwmodels.ProviderModel
diagnostic_severity=ERROR diagnostic_summary="Value Conversion Error" @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:62 @module=sdk.proto tf_rpc=Configure tf_proto_version=5.4 tf_provider_addr=registry.terraform.io/hashicorp/google tf_req_id=92996a22-50d1-e6c1-8978-5a912fe07e8e timestamp="2024-03-25T13:47:02.042+0700"

i am using:

  • Mac M1, but tried using the terraform_amd64 version
  • Terraform v1.7.5
  • Terraformer v0.8.24

Is this a version imcompatibility, outdated go version, or any other reason?

Thank you.

@zachmitch
Copy link

zachmitch commented Mar 27, 2024

@ivanrivai-smma in another issue thread they had the same problem (me too).

I fixed it by changing my versions.tf for google to 4.0.0:

terraform {
  required_providers {
    google = {
      source = "hashicorp/google"
      version = "4.0.0"
    }
  }
  required_version = ">= 0.13"
}

#1695

@ivanrivai-smma
Copy link
Author

@ivanrivai-smma in another issue thread they had the same problem (me too).

I fixed it by changing my versions.tf for google to 4.0.0:

terraform {
  required_providers {
    google = {
      source = "hashicorp/google"
      version = "4.0.0"
    }
  }
  required_version = ">= 0.13"
}

#1695

thanks man, so it was the provider version!

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

2 participants