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

full-lamp-64265

12/15/2023, 3:34 PM
Does pulumi come with something like this out of the box? I can make it just don't want to if its not needed: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-string#uniquestring I really also want to specify the desired output length, but would be nice to know if there is anything similar already. > uniqueString >
uniqueString(baseString, ...)
> Creates a deterministic hash string based on the values provided as parameters. > Namespace: sys.
m

miniature-musician-31262

12/15/2023, 3:36 PM
f

full-lamp-64265

12/15/2023, 3:36 PM
I saw that, but I want it deterministic based on input. Though maybe it provides such functionality, I will double check
m

miniature-musician-31262

12/15/2023, 3:39 PM
Ah, ok. Yeah, I don't believe it accepts input in that sense
d

dry-keyboard-94795

12/15/2023, 3:40 PM
What's the usecase for? You could just use sha256 (or whatever hash) and chomp the length
2 Views