infra-platform-aws-sdk
AWS SDK v3 Patterns
Quick Guide: AWS SDK v3 for JavaScript/TypeScript uses modular packages (
@aws-sdk/client-*) with a command pattern: create a client, instantiate a command, callclient.send(command). Import only the services you need for tree-shaking. UseDynamoDBDocumentClientfor native JS types. UsegetSignedUrlfrom@aws-sdk/s3-request-presignerfor presigned URLs. Handle errors withinstanceofspecific exception classes. Use built-in paginators (paginate*) withfor await...of.
<critical_requirements>
CRITICAL: Before Using This Skill
All code must follow project conventions in CLAUDE.md (kebab-case, named exports, import ordering,
import type, named constants)
(You MUST use AWS SDK v3 modular packages (@aws-sdk/client-*) — NEVER the monolithic aws-sdk v2 package)
(You MUST use the command pattern: client.send(new XxxCommand({...})) — NEVER call methods directly on the client)
(You MUST use DynamoDBDocumentClient from @aws-sdk/lib-dynamodb for DynamoDB — it auto-marshalls native JS types)
(You MUST handle errors with instanceof specific exception classes — NEVER catch generic Error and check .code)