hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.32k stars 1.72k forks source link

Validate bigquery reservation name match expected format #9609

Open melinath opened 3 years ago

melinath commented 3 years ago

Community Note

Affected Resource(s)

Description

Bigquery reservations can only use alphanumeric characters and dashes. If you try to include something else (like an underscore) you will get the following unhelpful error from the API:

{
  "error": {
    "code": 400,
    "message": "Malformed reservation.",
    "status": "INVALID_ARGUMENT"
  }
}

References

b/359704912

ggtisc commented 2 months ago

Confirmed issue!

This is a proposal to include underscores on the name argument of the google_bigquery_reservation resource

roaks3 commented 1 week ago

I think this is actual requesting to validate the existing allowed format, so that underscores (and other disallowed characters) produce a better error.