This message was deleted.
# general
s
This message was deleted.
b
Can you share some code? You shouldn't be seeing duplicate urns
r
The duplicate URNs are because im kinda manually setting them. I usually concatenate a couple of properties from the parameters and append some string to them, but in some scenarios I need to further differentiate. I was just wondering if I can follow some common rules of thumb so I can make my infra setup a bit more reusable. Eg creating the same schema in the {environment} database and in the {environment-just-doing-some-test} database gets quite complex as a lot of stuff is involved
I think I need to make up my mind how reusable my "CreateUserWithGrantOnSchema" methods (just an example) should be 😄
b
How come you're not letting Pulumi handle the naming for you?
r
I use pulumi's naming for things most things like resource groups or storage accounts, but not for db schemas or user accounts
also afaik every resource requires a unique logical (is this the right term) name. E.g.
pwd = new Password("pwd-foo-bar", ...)
the name I give here has to be unique
Which .. makes sense.
b
Sorry, yes you're right about the name there needing to be unique
If the length of the name is an issue, could you abbreviate it?