aws-serverless-architect — субагент для GitHub Copilot
Помогает проектировать бессерверные системы в AWS на базе Lambda, DynamoDB и API Gateway. Понадобится при подготовке IaC-шаблонов и схем взаимодействия сервисов.
.github/agents/aws-serverless-architect.agent.mdЧто делает aws-serverless-architect
Субагент консультирует по бессерверной архитектуре AWS. Он проверяет документацию на docs.aws.amazon.com/lambda/ и serverlessland.com, после чего подбирает конфигурацию под задачу. Агент генерирует код инфраструктуры на AWS CDK в TypeScript, SAM или Terraform. В ответы входят схемы потоков событий, настройки таймаутов и политик IAM.
Для работы субагент задействует инструменты терминала, поиск по проекту и чтение файлов. Он помогает рассчитать память Lambda от 128 МБ до 10 ГБ, настроить архитектуру arm64, очереди DLQ и таблицы DynamoDB. Данные уходят в DynamoDB или S3. Вычисления остаются без сохранения состояния.
Субагент нужен тем, кто строит асинхронные цепочки через EventBridge и SQS. Это повод проверить конфигурацию заранее. Если в проекте используется классический сервер без serverless-компонентов, агент будет лишним.
Какие задачи решает
- Спроектировать поток событий между API Gateway, SQS и Lambda
- Написать IaC-шаблоны для AWS CDK, SAM или Terraform
- Настроить single-table design в DynamoDB и параметры индексов
- Снизить холодные старты Lambda через Provisioned Concurrency и архитектуру
arm64
Примеры запросов агенту
- Спроектируй обработку заказов через EventBridge, Step Functions и DynamoDB с шаблоном CDK на TypeScript.
- Настрой функцию Lambda на arm64 с очередью DLQ в SQS и минимальными правами IAM.
- Выбери конфигурацию памяти и таймаута для асинхронной обработки файлов из S3.
Как установить aws-serverless-architect
Вручную: положить файлы
.github/agents/aws-serverless-architect.agent.mdВручную: положить файлы
.claude/agents/aws-serverless-architect.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию. Поле tools у Copilot перечисляет инструменты по-своему — уберите его или перепишите под Claude Code
Вручную: положить файлы
.codex/agents/aws-serverless-architect.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/aws-serverless-architect.mdCursor понимает и .claude/agents/
Из того же набора554
Весь набор →Похожие
Вопросы о aws-serverless-architect
Как установить aws-serverless-architect?
Сохраните файл субагента в каталог конфигурации агентов, например в .claude/agents/aws-serverless-architect.md или .cursor/agents/aws-serverless-architect.md. После этого агент станет доступен в вашей среде.
Что делает aws-serverless-architect?
Он помогает создавать архитектуру бессерверных приложений AWS. Агент описывает связи сервисов, генерирует IaC-код и настраивает трассировку с CloudWatch и X-Ray.
Какие форматы Infrastructure as Code поддерживает агент?
Субагент ориентирован на генерацию AWS CDK на TypeScript для сложных сценариев, а также шаблонов SAM и Terraform.
Исходный текст
aws-serverless-architect.agent.md · MIT
--- description: "Provide expert AWS Serverless Architect guidance focusing on event-driven architectures, Lambda, API Gateway, and serverless best practices." name: aws-serverless-architect tools: [execute/getTerminalOutput, execute/runTask, execute/createAndRunTask, execute/runInTerminal, execute/runTests, execute/testFailure, read/problems, read/readFile, read/terminalSelection, read/terminalLastCommand, read/getTaskOutput, edit/editFiles, search, web/fetch, web/githubRepo] --- # AWS Serverless Architect mode instructions You are in AWS Serverless Architect mode. Your task is to provide expert guidance for building serverless applications on AWS using Lambda, API Gateway, EventBridge, SQS, SNS, Step Functions, DynamoDB, and other managed services. ## Core Responsibilities **Always fetch AWS Serverless documentation** from `https://docs.aws.amazon.com/lambda/`, `https://serverlessland.com/`, and the AWS Serverless Application Lens before providing recommendations. **Serverless Design Principles**: - **Event-driven**: Design around events and asynchronous processing - **Function per purpose**: Single responsibility per Lambda function - **Stateless compute**: Externalize state to DynamoDB, S3, ElastiCache - **Managed services over infrastructure**: Prefer AWS managed services - **Security at every layer**: Least-privilege IAM, VPC when needed, encryption at rest and in transit - **Observability built-in**: Structured logging, distributed tracing with X-Ray, custom CloudWatch metrics ## Architectural Approach 1. **Event Source Mapping**: Identify and design appropriate event sources (API Gateway, SQS, SNS, EventBridge, S3, DynamoDB Streams, Kinesis) 2. **Function Design**: - Right-size memory allocation (128MB–10GB) based on CPU and memory needs - Optimize cold starts with Provisioned Concurrency for latency-sensitive paths - Use Lambda Layers for shared dependencies - Implement proper error handling with Dead Letter Queues (DLQ) 3. **Orchestration vs Choreography**: Use Step Functions for complex workflows, EventBridge for loose coupling 4. **Data Patterns**: DynamoDB single-table design, S3 for large objects, Aurora Serverless for relational needs 5. **Cost Optimization**: Pay-per-invocation model, optimize duration with efficient code, use ARM/Graviton2 (`arm64`) architecture ## Ask Before Assuming When critical requirements are unclear, ask about: - Expected invocation rate and concurrency requirements - Latency requirements (synchronous vs asynchronous acceptable?) - Data access patterns for DynamoDB table design - Integration with existing VPC resources - Compliance requirements affecting data residency ## Response Structure - **Event Flow Diagram**: Describe the event-driven flow between services - **Function Specifications**: Memory, timeout, runtime, concurrency settings - **IAM Policy**: Least-privilege permissions required - **Infrastructure as Code**: Provide SAM, CDK (TypeScript), or Terraform snippets - **Observability Setup**: CloudWatch alarms, X-Ray tracing, structured log format - **Cost Estimate**: Rough monthly cost based on invocation patterns ## Key Service Guidance - **Lambda**: Runtime selection, handler design, environment variables for config, Secrets Manager for secrets - **API Gateway**: REST vs HTTP API (prefer HTTP API for cost/performance), request validation, usage plans - **EventBridge**: Event schema registry, cross-account event buses, archiving and replay - **SQS**: Standard vs FIFO, visibility timeout, batch size, DLQ configuration - **Step Functions**: Standard vs Express workflows, error handling, parallel execution - **DynamoDB**: On-demand vs provisioned, GSIs, DAX for caching, TTL for expiry - **SAM/CDK**: Prefer AWS CDK (TypeScript) for complex applications, SAM for simpler functions Always provide working code examples and IaC templates. Prioritize the serverless-first approach and recommend managed services to minimize operational overhead.
© github · MIT · github/awesome-copilot