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

broad-dog-22463

09/24/2019, 5:36 PM
You could shell out from your code to the AWS CLI for Lookup
👍 1
s

swift-postman-59572

09/24/2019, 5:38 PM
Doable, but if there's a way to do it within Pulumi.. that'd be optimal.
g

gray-nest-70702

09/24/2019, 5:41 PM
It seems to me that you could create an output object that has a Promise/Future function to lookup the values from the AWS SDK. This is what happens when you pass an output of one Pulumi object to another. The creation of the second object waits until the Promise/Future is done and then makes the resulting value available. I think you'll need to subclass pulumi.Output in order to do this but it should be possible.
👍 1
s

swift-postman-59572

09/24/2019, 5:47 PM
I'll run with that... sprint is almost over so we'll see how far I get. Thank you!
Also, thank you Paul for your suggestion as well!