-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creation of google_compute_forwarding_rule
fails if default labels are set at provider level
#16906
Comments
I think that PSC forwarding rules can't have labels set, based on #16255 (comment) - we'll need to not apply default labels for forwarding rules of that type. |
Does a workaround exist? |
If you create the resource without labels initially, and then update it to include labels, it works correctly (as a workarround). What I did was
|
That's what I've been doing until I got tired of it and just stopped using provider-defined labels. |
They can. What is stupid is that the labels can't be set at creation time (GCP API limitation) but only added after the resource already exists. Is there a way to ignore provider-level labels for a particular resource by some statement? |
This is a duplicate to #17334 The request for the same fix for |
This happens with provider 5.2.0 and when the default labels are defined at provider level and there is no label block in google_compute_forwarding_rule itself:
Affected Resource(s)
google_compute_forwarding_rule
Originally posted by @Ziemowit-LH in #16255 (comment)
b/327610708
The text was updated successfully, but these errors were encountered: