aws avatar

Aws Sdk Js V3 Usage

AWS SDK for JavaScript v3 patterns for clients, credentials, streams, DynamoDB, S3, and error handling.

CCM score
79 of 100
skills.sh installs
8.8K
GitHub stars
3.5K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers bare-bones and aggregated client styles, client configuration, and sharing credentials and sockets across multi-region clients
  • Includes guidance on credential providers, paginators, DynamoDB DocumentClient, S3 presigned URLs and multipart uploads, and middleware
  • Enforces reading or discarding streaming responses to avoid socket exhaustion, and requires an explicit region on each client
  • Designed for JavaScript and TypeScript code that calls AWS services through @aws-sdk/* packages

Install

$ npx -y skills add aws/agent-toolkit-for-aws --skill aws-sdk-js-v3-usage -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Do not use emojis in any code, comments, or output when this skill is active.

AWS SDK for JavaScript v3

Package Structure

  • @aws-sdk/client-* — one per service, generated by smithy-typescript; one-to-one with AWS services and operations
  • @aws-sdk/lib-* — higher-level helpers (e.g. lib-dynamodb, lib-storage)
  • @aws-sdk/* (no prefix) — utility packages (mostly internal; don't import deep paths)

Always import from the package root:

import { S3Client } from "@aws-sdk/client-s3"; // correct
// NOT: import { S3Client } from "@aws-sdk/client-s3/dist-cjs/S3Client"

Two Client Styles

Bare-bones (preferred — smaller bundle):

import { S3Client, GetObjectCommand } from "@aws-sdk/client-s3";
const client = new S3Client({ region: "us-east-1" });
const output = await client.send(new GetObjectCommand({ Bucket: "b", Key: "k" }));

Aggregated (v2-style but NOT v2, larger bundle):

import { S3 } from "@aws-sdk/client-s3";
const client = new S3({ region: "us-east-1" });
const output = await client.getObject({ Bucket: "b", Key: "k" });

Client Configuration

Details

Repository
github.com/aws/agent-toolkit-for-aws
Categories
Backend & APIs, DevOps & Cloud
First seen
May 16, 2026

More from aws/agent-toolkit-for-aws

All 54

Similar to Aws Sdk Js V3 Usage

More Backend & APIs