-
Notifications
You must be signed in to change notification settings - Fork 491
Closed
Labels
bugThis issue is a bug.This issue is a bug.module/lambda-test-toolp2This is a standard priority issueThis is a standard priority issuequeued
Description
Description
I've created a new lambda function and I wanted to get the ARN for the function to pass along into my code for further processing. However, ILambdaContext.InvokedFunctionArn
is always returning null
, both when testing locally, as well as when calling the function in the real environment.
The documentation for the property does not state it can ever be null:
The ARN used to invoke this function. It can be function ARN or alias ARN. An
unqualified ARN executes the $LATEST version and aliases execute the function
version they are pointing to.
Reproduction Steps
- Create empty lambda
- Access the
InvokedFunctionArn
property in theILambdaContext
passed into the function - Check that the value is always
null
Environment
- Package Version:
Amazon.Lambda.Core v1.2.0
- OS Info: Windows 10
- Build Environment Visual Studio 2019
- Targeted .NET Platform: NetCore 3.1
Resolution
- 👋 I can/would-like-to implement a fix for this problem myself
This is a 🐛 bug-report
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.module/lambda-test-toolp2This is a standard priority issueThis is a standard priority issuequeued