Accessing AWS Lambda environment variables in Java code

Java Programmer :

The AWS has introduced Environment variables for accessing in the Lambda function. I could not find any documentation which shows how to access the environment variables from the Lambda function using Java. Can anyone help me?

hellomichibye :

you can get them with:

System.getenv("NAME_OF_YOUR_ENV_VARIABLE")

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=424823&siteId=1
Recommended