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

busy-umbrella-36067

11/28/2020, 4:55 AM
Does this example have valid IAM credentials attached to the lambda function? https://www.pulumi.com/blog/scheduling-serverless/
b

brave-planet-10645

11/28/2020, 10:34 AM
Take a look at crosswalk and specifically this section: https://www.pulumi.com/docs/guides/crosswalk/aws/lambda/#register-an-event-handler-by-creating-a-lambda-function-resource It shows how extra IAM resources are created and used.
b

busy-umbrella-36067

11/28/2020, 6:40 PM
That makes it non-inline though, meaning you can’t reference pulumi resources from inside the lambda like they do with
trashBucket.id.get()
https://www.pulumi.com/blog/scheduling-serverless/#taking-out-the-trash
I can pass it in via env var as a workaround, but its just not as clean
b

brave-planet-10645

11/28/2020, 10:26 PM
Oh I understand now. No you can't do that this way.