Encountered while deploying a lambda function to CloudFront
- Go to ->
AMI
->Roles
-> Search for the role created by Lambda during the lambda function creation. - Select the role ->
Edit Trust Relationship
- Add
edgelambda.amazonaws.com
underService
property as an array