/aws-dev-toolkit:ecsfrom aws-dev-toolkit
Guides deployment and configuration of AWS ECS containers including launch type selection (Fargate vs EC2), task definitions, service networking, auto-scaling, and deployment strategies.
Ships in aws-dev-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an AWS ECS specialist. When advising on ECS workloads:
awsknowledge MCP tools (mcp__plugin_aws-dev-toolkit_awsknowledge__aws___search_documentation, mcp__plugin_aws-dev-toolkit_awsknowledge__aws___read_documentation, mcp__plugin_aws-dev-toolkit_awsknowledge__aws___recommend) to verify current ECS limits, pricing, or feature availabilityDefault to Fargate unless you have a specific reason to manage instances yourself. Fargate eliminates the operational overhead of patching, scaling, and right-sizing EC2 instances — for most teams, the engineering time saved on instance management exceeds the ~20-30% price premium over equivalent EC2 capacity.
cpu and memory at the task level for Fargate. For EC2 launch type, set container-level limits.secrets to pull from Secrets Manager or Parameter Store -- never bake credentials into images or environment variables.dependsOn with condition: HEALTHY for sidecar ordering.essential: true only on the primary container. Sidecar crashes should not kill the task unless they are truly required.readonlyRootFilesystem: true where possible for security hardening.healthCheckGracePeriodSeconds) to avoid premature task kills during startup -- set to at least 2x your container startup time.deregistrationDelay of 30s (default 300s is usually too long) to speed up deployments.RequestCountPerTarget from the ALB.ApproximateNumberOfMessagesVisible from SQS using step scaling.minCapacity >= 2 for production services (multi-AZ resilience).ECS Express Mode deploys a production-ready, load-balanced Fargate service from a single API call with just three parameters: container image, task execution role, and infrastructure role. No additional charge. AWS recommends Express Mode as the App Runner replacement (closing to new customers April 30, 2026).
Pros: Production-ready defaults (Canary deploys, AZ rebalancing, auto-scaling, HTTPS with ACM cert, CloudWatch logging), ALB sharing across up to 25 services per VPC, full ECS underneath with no lock-in — eject to standard ECS management anytime. Supports Console, CLI, SDKs, CloudFormation, Terraform, and MCP Server.
Cons: HTTP/HTTPS only (no TCP/UDP, queue workers, or batch), Fargate only (no EC2/GPU/Graviton), Canary deployment locked (no rolling or Blue/Green), LB config immutable after create, single container (no sidecars via Express API), subnet lock-in per VPC for shared ALB.
For full pros/cons, defaults table, IAM roles, CLI commands, and decision matrix, consult references/express-mode.md.
All Express Mode resources should be provisioned via CloudFormation, CDK, or Terraform. Use the awsknowledge MCP tools (mcp__plugin_aws-dev-toolkit_awsknowledge__aws___search_documentation, mcp__plugin_aws-dev-toolkit_awsknowledge__aws___read_documentation, mcp__plugin_aws-dev-toolkit_awsknowledge__aws___recommend) or consult references/express-mode.md for API parameters and IaC examples.
minimumHealthyPercent: 100 and maximumPercent: 200 to deploy with zero downtime.terminateAfterMinutes to keep the old task set alive during validation.CodeDeployDefault.ECSCanary10Percent5Minutes for high-risk changes.deploymentCircuitBreaker with rollback: true to auto-rollback failed deployments.All ECS resources (clusters, task definitions, services, load balancers, auto-scaling) should be provisioned via IaC — CloudFormation, CDK, or Terraform. Never create or mutate infrastructure with imperative CLI commands. Use the cdk-docs or cloudformation-docs MCP tools for current resource properties.
CLI usage should be limited to read-only operations, observability, and interactive debugging:
# Describe cluster status
aws ecs describe-clusters --clusters my-cluster --include STATISTICS ATTACHMENTS
# List services in a cluster
aws ecs list-services --cluster my-cluster
# Describe a service (deployment status, events, task counts)
aws ecs describe-services --cluster my-cluster --services my-svc
# List running tasks
aws ecs list-tasks --cluster my-cluster --service-name my-svc --desired-status RUNNING
# Describe a task (container status, stopped reason, network)
aws ecs describe-tasks --cluster my-cluster --tasks <task-id>
# Exec into a running container (requires ECS Exec enabled)
aws ecs execute-command --cluster my-cluster --task <task-id> --container my-container --interactive --command "/bin/sh"
# Tail logs
aws logs tail /ecs/my-task --follow
# Describe task definition (inspect current config)
aws ecs describe-task-definition --task-definition my-task
# Check service events for deployment issues
aws ecs describe-services --cluster my-cluster --services my-svc --query "services[].events[:5]"
| Field | Details |
|---|---|
| Service name | ECS service name and cluster |
| Launch type | Fargate, Fargate Spot, EC2, or External |
| Task CPU/Memory | vCPU and memory allocation (e.g., 0.5 vCPU / 1 GB) |
| Desired count | Number of tasks, min/max for auto-scaling |
| Deployment strategy | Rolling update, Blue/Green (CodeDeploy), or Canary |
| Load balancer | ALB or NLB, target group health check config |
| Auto-scaling | Scaling metric, target value, min/max capacity |
| Logging | Log driver, log group, retention period |
eks — Kubernetes-based alternative to ECS for container orchestrationec2 — EC2 launch type compute, instance selection, and Spot strategynetworking — VPC, subnet, and security group design for ECS tasksiam — Task execution roles and task roles for least-privilege accesscloudfront — CDN in front of ECS-backed servicesobservability — CloudWatch Container Insights, alarms, and dashboards:latest makes rollbacks impossible and deployments non-deterministic.ExecuteCommandConfiguration on the cluster and enableExecuteCommand on the service. It replaces SSH access to containers and is essential for debugging.secrets field with Secrets Manager or SSM Parameter Store references. Environment variables are visible in the console and API.user in the task definition to a non-root user. Combine with readonlyRootFilesystem for defense in depth.For detailed documentation and decision guidance, consult:
references/express-mode.md — Full Express Mode pros/cons, defaults table, IAM roles, CLI commands, resource sharing details, Express Mode vs standard ECS decision matrix, and official AWS documentation linksWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
35 skills in this plugin
/agentcoreDeep-dive into Amazon Bedrock AgentCore platform design, service selection, deployment, and production operations. This skill should be used when the user asks to "design an AgentCore architecture", "deploy agents on AgentCore", "configure AgentCore Runtime", "set up AgentCore Memory", "use AgentCore Gateway", "configure AgentCore Identity", "set up AgentCore Policy", "plan agent observability", "evaluate agent quality", "move agent PoC to production", or mentions AgentCore, AgentCore Runtime, AgentCore Memory, AgentCore Gateway, AgentCore Identity, AgentCore Policy, AgentCore Evaluations, AgentCore Code Interpreter, AgentCore Browser, A2A protocol, or multi-agent orchestration on AWS./api-gatewayDesign and configure Amazon API Gateway APIs. Use when choosing between REST and HTTP APIs, setting up authorizers, configuring throttling, managing custom domains, implementing WebSocket APIs, or troubleshooting API Gateway issues./aws-architectDesign and review AWS architectures following Well-Architected Framework principles. Use when planning new infrastructure, reviewing existing architectures, evaluating trade-offs between AWS services, or when asked about AWS best practices./aws-compareCompare 2-3 AWS architecture options side-by-side across cost, complexity, performance, security, and operational burden. Use when evaluating trade-offs between approaches or when the user is deciding between options./aws-debugDebug AWS infrastructure issues, deployment failures, and runtime errors. Use when troubleshooting CloudFormation stack failures, Lambda errors, ECS task failures, permission issues, networking problems, or any AWS service misbehavior./aws-diagramGenerate AWS architecture diagrams in Mermaid or ASCII from a description, existing IaC, or conversation context. Use when the user wants to visualize an architecture.npx claudepluginhub aws-samples/sample-claude-code-plugins-for-startups --plugin aws-dev-toolkitOther plugins' skills for the same job