AWS SAM YAML Template: Lambda invoke policy
I’m trying to add into an AWS lambda (called UploadTriggerFunction), a policy to invoke another lambda (called EmoryParserFunction) in my template.yaml for AWS SAM.
When I do sam deploy, it’s failing due to an error in the mentioned policy. I’ve searched in the internet and I can’t find a solution.
This is the resource that I have so far (yaml code):