AWS Lambda Layer with the NPM dependency proxy-agent
This module exports a single class called NodeProxyAgentLayer
which is a lambda.Layer
that bundles the NPM dependency proxy-agent
.
proxy-agent Version: 5.0.0
Usage:
from aws_cdk.lambda_layer_node_proxy_agent import NodeProxyAgentLayer
import aws_cdk.aws_lambda as lambda_
# fn: lambda.Function
fn.add_layers(NodeProxyAgentLayer(self, "NodeProxyAgentLayer"))
proxy-agent
will be installed under /nodejs/node_modules
.