https://pulumi.com logo
p

proud-tiger-5743

05/08/2019, 12:08 AM
Is it possible to update the execution role for a lambda function declared inline via the
awsx
package?
w

white-balloon-205

05/08/2019, 12:22 AM
Yes - though you have to make it incrementally less "inline". See https://github.com/pulumi/examples/blob/20d0cec006756d873308181ff9664c75be9b1c60/aws-ts-thumbnailer/index.ts#L25 for an example. You can pass
role
to provider your own role, or
policies
to attach those policies to a freshly created role for the lambda.
p

proud-tiger-5743

05/08/2019, 12:25 AM
Got it - that makes perfect sense