Is it possible to update the execution role for a ...
# general
p
Is it possible to update the execution role for a lambda function declared inline via the
awsx
package?
w
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
Got it - that makes perfect sense