quick question before I start adding tons of unnecessary uniqueness - do pulumi names have to be globally unique within a stack or only unique within its
parent
?
b
bored-oyster-3147
05/03/2021, 11:24 AM
They have to be unique within a stack. This is why when you make a ComponentResource you pre-pend the name of the parent to it’s children
l
little-cartoon-10569
05/03/2021, 8:45 PM
They have to be unique within all resources of the same type.
🙌 1
I tend to give the same name to all resources within a component resource, except when there's more than one of a given type. That's when a suffix is required.