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.
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;