https://pulumi.com logo
#general
Title
# general
m

many-lock-25065

01/28/2020, 7:23 PM
Few questions about naming resources: • Am I correct in understanding that the resource name must be unique throughout the program for any resource, not just a resource of that kind? • What can go wrong if we don't? • Do you have any recommended best practices for naming? (e.g.
<type>-<name>
?)
g

gorgeous-egg-16927

01/28/2020, 7:25 PM
URNs have to be unique, so it’s not quite that strict. URNs are generated as a combination of the resource type and the provided name, so you mostly only have to worry about it if you are creating multiple of the same resource type.
Pulumi will fail with an error if it encounters a duplicate
m

many-lock-25065

01/28/2020, 7:26 PM
OK, the docs suggest it is stricter than that - "All resources have a 
name
, which must be unique across your entire Pulumi program."
g

gorgeous-egg-16927

01/28/2020, 7:26 PM
Mind filing an issue on that? There should be a button on the right gutter for that.
m

many-lock-25065

01/28/2020, 7:27 PM
You mean inside the docs?
Oh yeah
Thanks Levi