Accessing AWS Lambda environment variables in Java code

后端 未结 3 1213
面向向阳花
面向向阳花 2021-01-01 08:28

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 fro

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-01 09:09

    you can get them with:

    System.getenv("NAME_OF_YOUR_ENV_VARIABLE")
    

提交回复
热议问题