AWS SDK Integration Node.js (SDK v3) Client Setup DynamoDB Lambda Invocation SNS CloudWatch Metrics Python (boto3) Credentials (never hardcode) | Environment | Method | |-------------|--------| | Local dev | or | | EC2/ECS | Instance/task IAM role (automatic) | | Lambda | Execution role (automatic) | | CI/CD | + env vars | Anti-Patterns | Anti-Pattern | Fix | |--------------|-----| | Hardcoded credentials | Use IAM roles, env vars, or credential chain | | Single-region architecture | Use multi-AZ, consider multi-region for DR | | No retries on SDK calls | SDK v3 retries automatically — config…