little-cartoon-10569
05/11/2021, 9:38 PM{callback: handler}
, so it is impossible to pass in a role or policies.AWSLambda_FullAccess
* CloudWatchFullAccess
* CloudWatchEventsFullAccess
* AmazonS3FullAccess
* AmazonDynamoDBFullAccess
* AmazonSQSFullAccess
* AmazonKinesisFullAccess
* AWSCloudFormationReadOnlyAccess
* AmazonCognitoPowerUser
* AWSXrayWriteOnlyAccess
faint-table-42725
05/11/2021, 9:44 PM@pulumi/aws
policies
to the CallbackFunction
but if you are using mixin that in turn creates a CallbackFunction
then policies
is often not made available to you.little-cartoon-10569
05/11/2021, 9:45 PMfaint-table-42725
05/11/2021, 9:47 PMCallbackFunction
itself, which is unfortunately a bit more boilerplate code.little-cartoon-10569
05/11/2021, 9:48 PMfaint-table-42725
05/11/2021, 9:49 PMlittle-cartoon-10569
05/11/2021, 9:54 PMfaint-table-42725
05/11/2021, 9:57 PMlittle-cartoon-10569
05/11/2021, 9:59 PMfaint-table-42725
05/11/2021, 10:02 PMlittle-cartoon-10569
05/11/2021, 10:02 PMfaint-table-42725
05/11/2021, 10:30 PMpolicies
it should “just work” (i.e. pass in Output<string>[]
for example)Input<string>
for the arnlittle-cartoon-10569
05/11/2021, 10:34 PMutils.sha1hash(policy)
is complaining in lambdaMixins.ts.faint-table-42725
05/11/2021, 11:49 PMlittle-cartoon-10569
05/11/2021, 11:52 PMfaint-table-42725
05/11/2021, 11:57 PMlittle-cartoon-10569
05/11/2021, 11:59 PMfaint-table-42725
05/12/2021, 12:00 AMCallbackFunction
args should take a role
argument — which, if provided, will skip the whole policies
partlittle-cartoon-10569
05/12/2021, 12:01 AMup
to be sure, I've fallen behind trunk branch and there's a few changes I'd undo if I deployed now 🙂 I'll get to it in a few hours, need to get out of here now.
Thanks for all your help!