https://pulumi.com logo
#google-cloud
Title
# google-cloud
m

modern-tent-49484

03/01/2022, 10:09 AM
Is it not possible to add labels to things using the
google-native
provider?
g

great-queen-39697

03/01/2022, 3:59 PM
You should be able to add labels to resources on creation/modification with the native provider. What language are you working in? In Python with artifact registry, for example, there's a
labels
map option: https://www.pulumi.com/registry/packages/google-native/api-docs/artifactregistry/v1beta2/repository/#labels_python
m

modern-tent-49484

03/02/2022, 12:45 PM
I'm using Typescript
g

great-queen-39697

03/02/2022, 3:18 PM
They're available in TypeScript: https://www.pulumi.com/registry/packages/google-native/api-docs/artifactregistry/v1beta2/repository/#labels_nodejs. Is there a resource you're specifically trying to tag that you can't find a label input?
There's a few things that don't allow labels
g

great-queen-39697

03/03/2022, 3:35 PM
Ah, ok. This provider is in public preview (there's a note in https://www.pulumi.com/registry/packages/google-native/), so there's still some pieces that aren't implemented yet. They have to appear in the Google Cloud REST API before we can implement them, and I don't see labels in the discovery or the spec yet for the ones you have listed (e.g., https://cloud.google.com/compute/docs/reference/rest/v1/routers).
m

modern-tent-49484

03/04/2022, 1:02 PM
Cool, any chance you could look at why the connector needs a name, I don't see that in the spec, and it won't work with it
g

great-queen-39697

03/04/2022, 9:20 PM
Looks like one of our engineers is looking into it (self-assigned on the issue)