Skip to content

Commit

Permalink
docs(lambda-nodejs): containerEnvironment is parcelEnvironment (#10457)
Browse files Browse the repository at this point in the history
Closes #10443


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
jogold authored Sep 21, 2020
1 parent 457fab8 commit 7b409ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/@aws-cdk/aws-lambda-nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ All other properties of `lambda.Function` are supported, see also the [AWS Lambd
The `NodejsFunction` construct automatically [reuses existing connections](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-reusing-connections.html)
when working with the AWS SDK for JavaScript. Set the `awsSdkConnectionReuse` prop to `false` to disable it.

Use the `containerEnvironment` prop to pass environments variables to the Docker container
running Parcel:
Use the `parcelEnvironment` prop to define environments variables when Parcel runs:

```ts
new lambda.NodejsFunction(this, 'my-handler', {
containerEnvironment: {
parcelEnvironment: {
NODE_ENV: 'production',
},
});
Expand Down

0 comments on commit 7b409ae

Please sign in to comment.