This repository has been archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
converting tfplan to CAI assets: adding resource changes to converter: adding resource create/update/no-op converting asset: The zonal field for resource disks cannot be empty.", #573
Labels
question
Further information is requested
Comments
melinath
added
question
Further information is requested
and removed
bug
Something isn't working
labels
Mar 9, 2022
Some resources need to have zone fields set on them. TFV supports the same env vars to set defaults for those fields as the Terraform Provider: https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/provider_reference#full-reference If you believe this is a bug, please provide a minimal reproducible case (i.e. a Terraform plan). Thanks! |
I have encountered a similar (maybe the same issue). I believe it is a bug as the terraform is valid, and will apply, however the ProblemTerraform vet fails to convert valid terraform to CAI. Expected Result
Gcloud Version
Test Case Plan
Test case main.tf
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform Validator version
terraform-validator: v0.12.5
terraform cli 1.0.5
[validate] 2022-03-09T00:37:39.785693036Z error {"version": "v1.0.0", "error_details": {"error": "converting tfplan to CAI assets: adding resource changes to converter: adding resource create/update/no-op converting asset: The zonal field for resource disks cannot be empty.", "context": "github.com/GoogleCloudPlatform/terraform-validator/cmd.Execute\n\t/Users/stephenrlewis/projects/terraform-validator/cmd/root.go:111\nmain.main\n\t/Users/stephenrlewis/projects/terraform-validator/main.go:30\nruntime.main\n\t/usr/local/Cellar/go/1.16.6/libexec/src/runtime/proc.go:225"}}
Affected Resource(s)
Trying to create VM with adding extra disk, reports below error
[validate] 2022-03-09T00:37:39.785693036Z error {"version": "v1.0.0", "error_details": {"error": "converting tfplan to CAI assets: adding resource changes to converter: adding resource create/update/no-op converting asset: The zonal field for resource disks cannot be empty.", "context": "github.com/GoogleCloudPlatform/terraform-validator/cmd.Execute\n\t/Users/stephenrlewis/projects/terraform-validator/cmd/root.go:111\nmain.main\n\t/Users/stephenrlewis/projects/terraform-validator/main.go:30\nruntime.main\n\t/usr/local/Cellar/go/1.16.6/libexec/src/runtime/proc.go:225"}}
Terraform Plan JSON
Debug Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform-validator convert tfplan.json
Important Factoids
References
The text was updated successfully, but these errors were encountered: