0 votes
1 view
in AWS by (16.7k points)

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?

1 Answer

0 votes
by (39.6k points)

Use this:

System.getenv("NAME_OF_YOUR_ENVIRONMENT_VARIABLE")

...