Does this example have valid IAM credentials attac...
# aws
b
Does this example have valid IAM credentials attached to the lambda function? https://www.pulumi.com/blog/scheduling-serverless/
b
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
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
Oh I understand now. No you can't do that this way.