# @aws-cdk/asset-node-proxy-agent-v6

Latest version **2.1.3** (published 2026-09-08) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @aws-cdk/asset-node-proxy-agent-v6
pnpm add @aws-cdk/asset-node-proxy-agent-v6
yarn add @aws-cdk/asset-node-proxy-agent-v6
bun add @aws-cdk/asset-node-proxy-agent-v6
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.1.3 |
| Published | 2026-09-08 |
| First published | 2023-08-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Author | Amazon Web Services |
| Maintainers | amzn-oss, aws-cdk-team |
| Keywords | cdk |

## Links

- npm: https://www.npmjs.com/package/@aws-cdk/asset-node-proxy-agent-v6
- Repository: https://github.com/cdklabs/awscdk-asset-node-proxy-agent
- Homepage: https://github.com/cdklabs/awscdk-asset-node-proxy-agent#readme
- Issues: https://github.com/cdklabs/awscdk-asset-node-proxy-agent/issues
- npm.io page: https://npm.io/package/@aws-cdk/asset-node-proxy-agent-v6

## Recent versions

- 2.1.3 (latest) — 2026-09-08
- 2.1.2 — 2026-05-15
- 2.1.1 — 2026-02-26
- 2.1.0 — 2024-09-03
- 2.0.3 — 2024-03-28
- 2.0.2 — 2024-03-28
- 2.0.1 — 2023-08-11
- 2.0.0 — 2023-08-11

## README

# AWS Lambda Layer with the NPM dependency proxy-agent
<!--BEGIN STABILITY BANNER-->

---

![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge)

---

<!--END STABILITY BANNER-->

This module bundles the NPM dependency [`proxy-agent`](https://www.npmjs.com/package/proxy-agent)
as a local asset. It exposes constants `ASSET_FILE` and `LAYER_SOURCE_DIR` that can be consumed
via the CDK `Asset` construct.

> - proxy-agent Version: 6.3.0

Usage:

```ts
import { ASSET_FILE, LAYER_SOURCE_DIR } from '@aws-cdk/asset-node-proxy-agent-v6';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as s3_assets from 'aws-cdk-lib/aws-s3-assets';
import { FileSystem } from 'aws-cdk-lib';

declare const fn: lambda.Function;
const asset = new s3_assets.Asset(this, 'layer-asset', {
  path: ASSET_FILE,
  assetHash: FileSystem.fingerprint(LAYER_SOURCE_DIR),
});

fn.addLayers(new lambda.LayerVersion(this, 'ProxyAgentLayer', {
  code: lambda.Code.fromBucket(asset.bucket, asset.s3ObjectKey),
}));
```

[`proxy-agent`](https://www.npmjs.com/package/proxy-agent) will be installed under `/nodejs/node_modules`.

---
_Source: https://npm.io/package/@aws-cdk/asset-node-proxy-agent-v6 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
