https://pulumi.com logo
Title
w

worried-helmet-23171

02/04/2023, 4:14 AM
Hi Community, have a question - wondering, does pulumi creates a unique id in state, per a state file ?
o

orange-policeman-59119

02/04/2023, 4:22 AM
Every resource has a distinct URN
w

worried-helmet-23171

02/04/2023, 5:29 AM
thanks! is there a unique urn or id for the state file itself ?
o

orange-policeman-59119

02/04/2023, 5:35 AM
I'd have to check, but within a backend every fully qualified stack name is unique - org, project, stack.
w

worried-helmet-23171

02/04/2023, 4:33 PM
I guess I am looking for something independent of the name .. like a random uuid created at stack creation time
o

orange-policeman-59119

02/04/2023, 4:44 PM
e

echoing-dinner-19531

02/04/2023, 5:53 PM
I guess I am looking for something independent of the name .. like a random uuid created at stack creation time (edited)
For the stack overall, or for each resource in the stack?
w

worried-helmet-23171

02/04/2023, 6:00 PM
for the stack overall
perhaps random provider could be used.
e

echoing-dinner-19531

02/04/2023, 6:01 PM
Yeh I'd look into trying to use that for now. I've been looking at adding something that might cover this, but its still early designs