aws avatar

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-code

Installs 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
1grafana avatarlokigrafana/skillsGrafana Loki log aggregation and LogQL query language. Covers LogQL syntax (log queries, metric queries, label matchers, line filters, parsers: json/logfmt/patt8.5Kskills.sh installs
2czlonkowski avatarn8n-mcp-tools-expertczlonkowski/n8n-skillsExpert guide for using n8n-mcp MCP tools effectively. Use when searching for nodes, validating configurations, accessing templates, managing workflows, organizi8.5Kskills.sh installs
3aws avataraws-sdk-python-usageaws/agent-toolkit-for-awsAWS SDK for Python (boto3/botocore) development patterns. You MUST use this skill when writing Python code that uses AWS services via boto3 or botocore. This in8.3Kskills.sh installs
4jeffallan avatarpostgres-projeffallan/claude-skillsUse when optimizing PostgreSQL queries, configuring replication, or implementing advanced database features. Invoke for EXPLAIN analysis, JSONB operations, exte8.2Kskills.sh installs
5imbad0202 avatardeep-researchimbad0202/academic-research-skillsUniversal deep research agent team. 13-agent pipeline for rigorous academic research on any topic. 8 modes: full research, quick brief, paper review, lit-review8Kskills.sh installs
6antonbabenko avatarterraform-skillantonbabenko/terraform-skillUse when writing, reviewing, or debugging Terraform/OpenTofu modules, tests, CI, scans, or state ops - diagnoses failure mode (identity churn, secrets, blast ra7.9Kskills.sh installs