terraform-google-modules/terraform-docs-samples

Quotes around "nvidia.com/gpu" causes error upon `tofu validate` command.

Closed this issue · 2 comments

I am running OpenTofu v1.7.3.

Error message says: "Argument names must not be quoted."

My usage

limits {
cpu = "1000m" // Limit to one CPU core
"nvidia.com/gpu" = 1 // Request one NVIDIA T4 GPU
}

Okay, I found a solution:, just had to add an "=" after "limits", i.e.

limits = {
                  cpu = "1000m" // Limit to one CPU core
                  "nvidia.com/gpu" = 1 // Request one NVIDIA T4 GPU
                }

Closing issue.