Skip to content
Unverified Commit bea5f1d2 authored by Ryan Scott Brown's avatar Ryan Scott Brown Committed by GitHub
Browse files

fix: Silence home directory warning in Lambda Extensions (#1344)

* fix: Silence home directory warning in Lambda Extensions

This PR follows on to https://github.com/awslabs/smithy-rs/pull/893 which added
LAMBDA_TASK_ROOT check. When running as a [Lambda Extension][ext]
the environment variable for TASK_ROOT is redacted, so it is not
reliable for testing whether you are in Lambda.

Related commit: fbb4bc

[ext]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-extensions-api.html



* update changelog

* fixup: use AWS_LAMBDA_FUNCTION_NAME which is available in both environments

* Update CHANGELOG.next.toml

* Fix failing unit test

Co-authored-by: default avatarJohn DiSanti <jdisanti@amazon.com>
parent b43dc6df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment