-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
google_os_config_os_policy_assignment failure on Windows #12077
Comments
@DmitriSmirnovCTL I am able to create the |
Code works for me on MacOS and CloudShell but fails on Windows 10 and Window 2022 |
@DmitriSmirnovCTL I was using the very your code. I saw the resource was created. Not sure what was wrong with yours. It appears the terraform fails at the precheck stage which has not launch api calls yet. Are you able to run the code for Windows at the GCP Cloudshell? |
Correct, it fails on precheck stage if terraform executed on Windows OS. Were you able to deploy from Windows-based machine? The code is part of custom project template on my side. I can deploy projects myself from MacOS but have users with terraform deployed on Windows machines and code fails for them. I did reproduce the failure from Windows 2022-based machine too. |
Looks like a conversion issue on the generation number? My first guess is that it's too large for the windows architecture you're on to handle, so TF converts it? If the error happens when running Terraform on windows but not for the same config file on MacOS, the problem is likely not in the provider. I may direct you to either Terraform core or the SDK directly. What version of Terraform are you running? |
Terraform version: v1.2.4 |
Talked to some people on the SDK team, I think the issue is at the SDK level. Can you confirm if you're on a 32-bit version of windows? And if so, can you try on a 64-bit version and see if it solves the issue? |
Thank you, we were using 64-bit Windows machines and 32-bit terraform binary. Switched to 64-bit terraform binary and was able to pre-check and deploy. |
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. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v1.2.4
on windows_386
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/DmitriSmirnovCTL/f7c460bb013d30929542564278e4b234
Panic Output
Expected Behavior
Related terraform works fine from CloudShell and MacOS but fails for terraform on Windows
Actual Behavior
Code deploys OSConfig policy in specified project/zone. Works on MacOS, fails on Windows
Steps to Reproduce
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: