-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Getting error while running terraformer on google provider #1695
Comments
I'm having the same issue |
I have the same issue.
|
I have the same issue and even tried to change the versions for Terraformer (v0.8.19, v08.17) |
Same for me, it was working fine but all of sudden has broken with the above error.
I tried downgrading the GCP provider but get the same issue. I've tried using a different Service account and running a docker container too |
@nicklinnell , I fixed my case by downgrading the GCP provider to v4.60.0. It works well for me. |
@musyaf11 Unfortunately that didn't fix it for me I I still get the same error:
|
@nicklinnell , want to ensure that you have done the following steps as follows:
|
Following along as well, just started looking at terraformer for use with our google cloud DNS setup. Looks like I picked a good time to start ! :D Followed the steps above to wipe env. Have successfully pinned the provider to 4.60.0 as shown below but error still occurring
Also spews out the following, not sure if related
e2a:
|
@musyaf11 yes, I'm actually running this in a "clean" docker container the reinitialises terraform new each time it runs so there are no files other than a
|
@nicklinnell, not sure what the cause of this error, is since I even tried to change the GCP provider to 4.0.0. and it works well for me. My colleague at work also tried this and it works as well for him as well. btw, here are the versions on my end and colleagues:
|
FYI, stepping back again to GCP 4.0.0 after wiping the environment worked for me ! |
Thanks @musyaf11 and @stephen-dunne I can confirm switching to GCP v4.0.0 fixes the issue for me |
what is GCP v4.0.0? The same error occurs to me. How do you solve it? my version
|
@somaz94 :
That is provider version, as below in the tf configuration (modify after export from terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "4.0.0"
}
}
required_version = ">= 0.13"
} |
WOW! thank you for @samveen I solve the problem |
Just adding my 2 cents here. I had the same problem and then changed to 4.0.0 and it worked, but what exactly is breaking in the provider? |
Came here with the same question and wanted to config downgrading to |
I can confirm too that downgrading to 4.0.0 is a workaround for now. |
4.60 didn't wor for me, but 4.0 did. But that means the imports probably are missing new things that the current provider has that 4.00 didn't. |
I found that 4.59.0 is the highest "hashicorp/google" provider version that works with Terraformer as of 7/11/23. Terraformer v0.8.24 (darwin_arm64) I also tried with a full amd_64 stack and got the same results. |
GoogleCloudPlatform/terraformer#1695 states that any version of the GCP provider after 4.60.0 is having an issue. Fixing the version for now.
COS-417 - Avoid gcp bug GoogleCloudPlatform/terraformer#1695 states that any version of the GCP provider after 4.60.0 is having an issue. Fixing the version for now.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
@sergeylanzman issue stands and is being worked on. Can anyone please remove the stale label to avoid keep alives' noise? |
|
Hi, Community, MacBook-Pro terraform-repo % terraformer import google --resources=cloudFunctions --projects=dev-project --regions=us-central1
Google Cloud SDK 449.0.0 Could someone help, please? |
Problem exists with the 5.x providers as well |
Any update on this? its failing in 5.10.0 too |
The issue originally described remains an issue. In my case, I cannot downgrade provider versions as I am dealing with production environments (regardless, downgrading a major version of a software component is not a resolution to a bug). I have reported the issue on the registry side (read, on hashicorp/terraform-provider-google but I was told "it is not their problem"). For reference, the bug I opened: hashicorp/terraform-provider-google#16920 a similar one opened by someone else here: hashicorp/terraform-provider-google#15059 Is this project being actively supported? @jpatokal @nckslvrmn @vgavro |
I am not a regular maintainer of this project so I cannot speak to its active support, I just enjoy it and needed to fix something for my own use with the tool which got recently merged :) |
Are there any updates? It's still failing on the recent version |
Google has a preview feature for exporting a project as terraform as described at https://cloud.google.com/docs/terraform/resource-management/export. List of supported types is as below:
|
Where is the official documentation that mention this? |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This is still an issue as of now. |
I had to downgrade to @musyaf11 recommendation version and I finally worked. |
@thalesgibbon did you happen to try |
If you see this error, decrement your google provider version to 4.x.x. For me, I am using terraform 1.8.2 and the latest google provider version that works is 4.59.0. Any version above that fails with [ERROR] plugin: plugin process exited: path=~.terraform.d/plugins/darwin_amd64/terraform-provider-google_vX.X.X_x5 |
Still an issue. Downgrading to google provider version 4.59.0 did work for me. |
Getting below error:
2023-04-26T05:11:12.776Z [ERROR] plugin.terraform-provider-google_v4.63.0_x5: Response contains error diagnostic: @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:55 diagnostic_attribute="" diagnostic_severity=ERROR diagnostic_summary="Value Conversion Error" tf_req_id=8f4a4a53-80a0-9b9a-5d77-c095be339355 @module=sdk.proto
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: google.ProviderModel
| Suggested
types
Type: basetypes.ObjectValue| Suggested Pointer Type: *google.ProviderModel
tf_proto_version=5.3 tf_provider_addr=registry.terraform.io/hashicorp/google tf_rpc=Configure timestamp=2023-04-26T05:11:12.776Z
The text was updated successfully, but these errors were encountered: