Note 2026-07-03

Terraform validate failures in SecureVault

Why `terraform validate` started rejecting `labels` and a misplaced `description`, and how I aligned the Terraform config with the Google provider schema.

After consolidating SecureVault’s CI into a single ci.yml, the Terraform Plan job failed at the terraform validate step. Locally I could reproduce the same errors.

What failed

terraform validate reported three unsupported-argument errors:

After fixing those, a second run flagged labels on additional Compute resources:

Root cause

The arguments were not exposed by the installed hashicorp/google provider schema in this environment. Some resources support labels; others do not, and google_logging_metric expects description at the top level instead of inside metric_descriptor.

The fix

In terraform/main.tf:

Result