This message was deleted.
# general
s
This message was deleted.
1
l
If you're running via the Pulumi service, you can use its API: https://www.pulumi.com/docs/reference/service-rest-api/#list-stack-updates
But I don't know how to do it via the automation-api. I think it's unlikely to be available within a Pulumi program.
s
I see thanks
I thought to grab some Stack ID similar to how Cloud Formation does it
l
@salmon-motherboard-78006 If you want to grab this ID manually, you can look at the terminal output. When
pulumi up
is ran, the live preview link is displayed. The id of the run should be the uuid appended to the end of the link.
s
Thanks… but I need the id as part of the code (e.g. trying to create a LogGroup with the id)…
l
You cannot create any resource with a Pulumi name that is not known at runtime. async values, or anything retrieved from the cloud, cannot be used, unless they are retrieved in advance and passed into the program.
So a dynamically-generated stack ID is not suitable for this use.
Maybe maintain your own ID? Perhaps your build system / yarn could create it and pass it in?
👍 1
s
ok got it… will just generate a UUID as a sudo solution
👍 1