This message was deleted.
# general
s
This message was deleted.
b
You don't normally need to await anything. Pulumi can normally use promises as inputs. https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/#Input
If you need to do some transformations on it you can use:
Copy code
const someAttribute = pulumi.output(myPromise).apply(result => result.someAttribute)
and then it can be used:
Copy code
new aws.s3.Bucket('mybucket', {name: someAttribute})
if you have multiple promises/outputs you can use
pulumi.all([promise1, promise2,...]).apply(([resolved1, resolved2, ...]) => ....)
a
Casting a promise to pulumi.output was exactly what I wanted! It worked, I can use an AWS SDK method natively now in my index.ts, thank you so much for the documentation and direction! :D