Reputation: 1035
Hi I have a lot of lambda functions that needs lambda:UpdateFunctionCode
permission. Its too troublesome to input all the functions' ARNs in the resource field. All my functions has a prefix, when I try to use prefix*
in the resource field it does not allow me.
This is what I tried but didn't work.
"arn:aws:lambda:ap-southeast-1:xxxxxxxx:function:prefix*"
Is there a way I can use a wildcard for this?
Edit: added a fake account number.
Upvotes: 7
Views: 3424
Reputation: 776
Although this is a good feature to have but I have verified with AWS support
(1) Function name format cannot include "*" (https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html#SSS-AddPermission-request-FunctionName)
(2) they have submit a feature request internally. The support also suggest you could also raise the concerns on the Github[3][4] page so that the Quickstart team can directly address them.
[4] https://github.com/awslabs/serverless-application-model/issues
Upvotes: 4