Created
September 19, 2020 04:41
-
-
Save DavidWells/fda3257aa8fd734073f799e188d20ea1 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
Thanks 👍 This saved me some time :)