I have one lambda that invokes another lambda in my serverless.yml:
provider:
iamRoleStatements:
- Effect: Allow
Action:
- lambda:InvokeFunction
Resource:
Fn::GetAtt:
- FunctionBLambdaFunction
- Arn
functions:
functionA:
handler: ...
functionB:
handler: ...
I am trying to get the ARN for the function that needs invoked, but I am getting this error:
Error: The CloudFormation template is invalid: Circular dependency between resources
Is there a correct way to get the ARN for a lambda function like I do with Fn::GetAtt
for anything defined in the resources
section?