https://pulumi.com logo
#typescript
Title
# typescript
g

great-sunset-355

10/16/2023, 7:08 AM
Is it possible to get the value of autonamed resource before the resource is created? eg
new aws.lambda.Function("urnpart", {}..)
results in function
urnpart-12345
is there a way to get the value of
12345
before the function is created?
b

brave-planet-10645

10/16/2023, 7:15 AM
No. You can set a name yourself using the
name
input and this will override the auto naming
g

great-sunset-355

10/16/2023, 8:27 AM
yeah I know I can override auto naming, it is probably the only thing I can do
b

brave-planet-10645

10/16/2023, 10:23 AM
We use random numbers and letters for the auto-naming suffix so there’s no way to predict what it will be
c

clever-sunset-76585

10/16/2023, 5:03 PM
I am curious -- why do you want the final resource name before the resource is created? In other words, what are you trying to do with it?