# @aws-cdk/asset-awscli-v1

> A library that contains the AWS CLI for use in Lambda Layers

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

## Install

```sh
npm install @aws-cdk/asset-awscli-v1
pnpm add @aws-cdk/asset-awscli-v1
yarn add @aws-cdk/asset-awscli-v1
bun add @aws-cdk/asset-awscli-v1
```

## 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; large bundle.

## Facts

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

## Links

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

## Recent versions

- 2.2.294 (latest) — 2026-08-31
- 2.2.293 — 2026-08-10
- 2.2.292 — 2026-08-03
- 2.2.291 — 2026-07-27
- 2.2.290 — 2026-07-20
- 2.2.289 — 2026-07-13
- 2.2.288 — 2026-07-13
- 2.2.287 — 2026-07-06
- 2.2.286 — 2026-06-29
- 2.2.285 — 2026-06-22
- 2.2.284 — 2026-06-15
- 2.2.283 — 2026-06-08
- 2.2.282 — 2026-05-25
- 2.2.281 — 2026-05-19
- 2.2.280 — 2026-05-11
- … 323 more at https://npm.io/package/@aws-cdk/asset-awscli-v1/versions

## README

# Asset with AWS CLI v1
<!--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 AWS CLI v1 as a local asset. It exposes
constants `ASSET_FILE` and `LAYER_SOURCE_DIR` that can be consumed
via the CDK `Asset` construct.

Any Lambda Function that uses uses this asset must use a Python 3.x
runtime.

Usage:

```ts
// AwsCliLayer bundles the AWS CLI in a lambda layer
import { ASSET_FILE, LAYER_SOURCE_DIR } from '@aws-cdk/asset-awscli-v1';
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, 'AwsCliLayer', {
  code: lambda.Code.fromBucket(asset.bucket, asset.s3ObjectKey),
}));
```

The CLI will be installed under `/opt/awscli/aws`.

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