beta provider fails when setting min_cpu_platform
in auto_provisioning_defaults
for google_container_cluster
#18122
Labels
min_cpu_platform
in auto_provisioning_defaults
for google_container_cluster
#18122
Community Note
Terraform Version & Provider Version(s)
Terraform v1.8.2
on
Affected Resource(s)
google_container_cluster
Terraform Configuration
Debug Output
2024-05-14T12:21:58.579+0200 [ERROR] provider.terraform-provider-google_v5.29.0_x5: Response contains error diagnostic: tf_resource_type=google_container_cluster @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_detail="" diagnostic_summary="project: required field is not set" tf_proto_version=5.4 tf_provider_addr=registry.terraform.io/hashicorp/google tf_req_id=7e28ccf1-787a-6db6-a0e9-bdbfa3d06968 @module=sdk.proto diagnostic_severity=ERROR tf_rpc=ApplyResourceChange timestamp="2024-05-14T12:21:58.579+0200"
2024-05-14T12:21:58.580+0200 [DEBUG] State storage *remote.State declined to persist a state snapshot
2024-05-14T12:21:58.580+0200 [ERROR] vertex "google_container_cluster.prod" error: project: required field is not set
2024-05-14T12:21:58.580+0200 [DEBUG] states/remote: state read serial is: 202; serial is: 202
2024-05-14T12:21:58.580+0200 [DEBUG] states/remote: state read lineage is: 2aabb3ac-527d-a139-ec90-5a6a1102efc8; lineage is: 2aabb3ac-527d-a139-ec90-5a6a1102efc8
╷
│ Error: project: required field is not set
│
│ with google_container_cluster.prod,
│ on gke.tf line 72, in resource "google_container_cluster" "prod":
│ 72: resource "google_container_cluster" "prod" {
│
╵
2024-05-14T12:21:58.958+0200 [DEBUG] provider.terraform-provider-google_v5.29.0_x5: 2024/05/14 12:21:58 [DEBUG] [transport] [server-transport 0x14000162600] Closing: Server.Stop called
2024-05-14T12:21:58.958+0200 [DEBUG] provider.terraform-provider-google_v5.29.0_x5: 2024/05/14 12:21:58 [DEBUG] [transport] [server-transport 0x14000162600] loopyWriter exiting with error: transport closed by client
2024-05-14T12:21:58.959+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-05-14T12:21:58.964+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/5.29.0/darwin_arm64/terraform-provider-google_v5.29.0_x5 pid=82611
2024-05-14T12:21:58.964+0200 [DEBUG] provider: plugin exited
Expected Behavior
new cluster should be deployed with
min_cpu_platform
"Intel Cascade Lake"Actual Behavior
when i deploy with google-beta provider i get the above error and terraform terminates.
when i use the google provider the deployment is successful but the
min_cpu_platform
is ignored.Steps to reproduce
min_cpu_platform
terraform apply
Important Factoids
No response
References
google documentation
google_container_cluster documentation
The text was updated successfully, but these errors were encountered: