
Aws Sdk Js V3 Usage
This one's for anyone writing Node.js or TypeScript code that talks to AWS services using the v3 SDK. It covers the modular client pattern (the `@aws-sdk/client-*` packages), credential providers, streaming response handling (critical because unread streams leak sockets), DynamoDB DocumentClient, S3 presigned URLs and multipart uploads, paginators, and middleware. The guidance is opinionated in the right ways: prefer the bare-bones client style for smaller bundles, never mutate client config after instantiation, always consume or destroy streams. If you're moving from v2 or just need to stop Googling basic patterns like credential chains and error handling, this saves a lot of time.
- skills.sh installs
- 8.5K
- GitHub stars
- 3.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aws/agent-toolkit-for-aws --skill aws-sdk-js-v3-usage --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/aws/agent-toolkit-for-aws
- Categories
- Documentation, AI & Agent Building, Cloud & Infrastructure
- First seen
- May 16, 2026
More from aws/agent-toolkit-for-aws
All 56- Aws Sdk Python Usage8.3K
- Securing S3 Buckets7.4K
- Connecting To Data Source7.2K
- Creating Secrets Using Best Practices7.2K
- Exploring Data Catalog7.1K
- Querying Data Lake7.1K
- Storing And Querying Vectors7K
- Connecting Lambda To Api Gateway7K
- Aws Sdk Swift Usage7K
- Ingesting Into Data Lake7K
- Aws Amplify7K
- Creating Data Lake Table7K
- Finding Data Lake Assets7K
- Connecting Lambda To Dynamodb6.9K
- Troubleshooting Application Failures6.9K
- Configuring Vpc Endpoints For Private Aws Service Access6.8K
- Debugging Lambda Timeouts6.8K
- Setting Up Cloudwatch Alarm Notifications6.8K
- Launching Ec2 Instance With Best Practices6.8K
- Troubleshooting S3 Files6.7K
- Creating Api Gateway Stage6.7K
- Setting Up Ec2 Instance Profiles6.6K
- Creating Production Vpc Multi Az6.6K
- Signing In To Aws6.6K