2 ms·
> There seems to be some issue applying privileges that I can't seem to figure out. Your lambda function will fail to execute because API Gateway does not have
by gingerlime 10y ago
> There seems to be some issue applying privileges that I can't seem to figure out. Your lambda function will fail to execute because API Gateway does not have permissions to execute your function.
This stuff is definitely confusing. I think I "reverse-engineered" from applying things via the web interface and then looking at the policy when I created Gimel[0] - an AWS Lambda A/B testing backend. Take a look here[1] for the policy. I think that's what you're looking for, but I can't say I'm confident it is... (it's confusing).
There are some more general-purpose tools to help you deploy to Lambda. Kappa[2] and Apex[3] are worth looking into.
[0] https://github.com/Alephbet/gimel https://github.com/Alephbet/gimel
[1] https://github.com/Alephbet/gimel/blob/master/gimel/deploy.py#L42-L60 https://github.com/Alephbet/gimel/blob/master/gimel/deploy.p...
[2] https://github.com/garnaat/kappa https://github.com/garnaat/kappa
[3] https://github.com/apex/apex https://github.com/apex/apex