Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 477 Bytes

get_env_var.md

File metadata and controls

13 lines (8 loc) · 477 Bytes

This documentation is for the developer preview release (public beta) of the AWS Cloud Development Kit (CDK). Releases might lack important features and might have future breaking changes.


Get a Value from an Environment Variable

To get the value of an environment variable, use code like the following. This code gets the value of the environment variable MYBUCKET.

const bucket_name = process.env.MYBUCKET;