Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Various ways to reference function name and ARN in serverless.yml
handler: index.handler
# Ways to reference function in serverless.yml
FunctionName: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${}-${self:provider.stage}-foo
FunctionName: !GetAtt FooLambdaFunction.Arn
FunctionName: !Sub "${AWS::StackName}-foo"
FunctionName: ${}-${self:provider.stage}-foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment