eventarc.v1.Trigger is auto-named incorrectly #872
Labels
area/providers
impact/usability
Something that impacts users' ability to use the product easily and intuitively
kind/bug
Some behavior is incorrect or out of spec
The
eventarc.v1.Trigger
resource has two properties related to its name: a requiredtriggerId
:https://github.com/pulumi/pulumi-google-native/blob/master/sdk/nodejs/eventarc/v1/trigger.ts#L201
and an optional
name
:https://github.com/pulumi/pulumi-google-native/blob/master/sdk/nodejs/eventarc/v1/trigger.ts#L188
I suppose they represent the same thing, just with a different format. I cannot omit the
triggerId
, so I always have to set an explicit resource name. If I omitname
, it seems to generate an auto-name with a random suffix, however it gets ignored and the eventual resource in Google Cloud will have the same name as my specifiedtriggerId
.Digging into Google's specs (AIP-133):
and later
Therefore, I think the correct behavior would be:
name
property into resource inputs.triggerId
should be an optional property. The provider should auto-name it if user doesn't specify an explicit value.The text was updated successfully, but these errors were encountered: