You defined your Lambda function as a stage variable; you must manually give permissions to all the functions you will use. You can do this by running the below AWS CLI command for each function, replacing the stage variable in the function-name parameter with the necessary function name.
aws lambda add-permission --function-name arn:aws:lambda:eu-west-1:12345:function:test${stageVariables.functionAlias} --source-arn arn:aws:execute-api:eu-west-1:12345:dsad667asd/*/GET/test/test --principal apigateway.amazonaws.com --statement-id d5a14508-22bb-4413-87c9-d9715e36435d --action lambda:InvokeFunction
Getting this message and suggestion to run this command , unfortunately it does not work here throwing
zsh: bad substitution
with or without zsh, what I am looking is a way to do this manualy (using aws interface)
thanks!
invokeLambdapermission. You can set up your IAM role permissions how you wish in the Console I believe.