Forked from DavidWells/serverless-function-reference-formats.yml
Created
November 23, 2022 03:03
-
-
Save ChunAllen/5b48526ca9ccec474bd85a25742ab7b7 to your computer and use it in GitHub Desktop.
Various ways to reference function name and ARN in serverless.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function: | |
foo: | |
handler: index.handler | |
# Ways to reference function in serverless.yml | |
FunctionName: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${self:service.name}-${self:provider.stage}-foo | |
FunctionName: !GetAtt FooLambdaFunction.Arn | |
FunctionName: !Sub "${AWS::StackName}-foo" | |
FunctionName: ${self:service.name}-${self:provider.stage}-foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment