Status Update
Comments
be...@google.com <be...@google.com> #2
As I've been able to reproduce this issue, I will be contacting the appropriate team to take a look at this, because the string "label_value" should be identified as such and converted to the appropriate JsonValue class, as stated in
Unfortunately, in spite of my many attempts, I've not been able to find a workaround to convert the initial string to the appropriate class and pipe it into the command.
Thank you for letting us know of this. Kind regards,
te...@gmail.com <te...@gmail.com> #3
We have probably attempted many the same hacks ;). I hope your were wearing some head protection before the start of your wall banging.. (I forgot and ended up with a headache).
We are very much looking forward to your solution because the issue is currently blocking our project.
Best,
Tein
de...@google.com <de...@google.com> #4
Hi there,
I forwarded the information to the engineering team. Please keep in mind that there is no ETA about the resolution of the issue and once there is an update you will be notified in this issue.
If you need a technical solution I suggest you to contact the GCP support
tp...@google.com <tp...@google.com> #5
I just spent several hours putting together a PR for our
The actual map(string)
and I've thus tried various tricks like passing this variable:
budget_label = {
"htcondor-pool" : jsonencode([var.pool_name])
}
but I still get the same Terraform error as above.
tp...@google.com <tp...@google.com> #6
I have created this
tp...@google.com <tp...@google.com> #7
Am I right to interpret
tp...@google.com <tp...@google.com> #8
The PR from the previous comment appears to allow budgets with labels to be created but not modified in-place. I have filed a
tp...@google.com <tp...@google.com> #9
The following Issues/PRs should resolve this particular issue for all Terraform Google Providers (beta and GA) 4.5 and above:
Description
Below (actions between brackets only for redaction),
( - replace [BA] with a valid billing account that the user has rights on )
( - replace [NAME[ with anything valid )
( - replace [LABEL_KEY] with an existing label key )
- replace [LABEL_VALUE] with a label value that exists on the label key AAA.
> cloud billing budgets create --billing-account=[BA] --budget-amount=1000 --display-name="[NAME]" --filter-labels=[LABEL_KEY]=[LABEL_VALUE]
What is the expected output?
Either that the budget alert has been created, or that some valuable feedback is provided on how to.
What do you see instead?
ERROR: gcloud crashed (ValidationError): Expected type <class 'apitools.base.py.extra_types.JsonValue'> for field value, found [LABEL-VALUE] (type <class 'str'>)
Please provide any additional information below.
Terraform gives another error for the same kind of request:
Error: Error updating Budget "billingAccounts/[BA]/budgets/[BUDGET_ID]": googleapi: Error 400: Invalid value at 'budget.budget_filter.labels[0].value' (
Details:
[
{
"@type": "
"fieldViolations": [
{
"description": "Invalid value at 'budget.budget_filter.labels[0].value' (
"field": "budget.budget_filter.labels[0].value"
}
]
}
]