[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A7KYCWWEGJKM5MJB0XJJYA":3,"skill-same:01M7A7KYCWWEGJKM5MJB0XJJYA":142},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7A7KYCWWEGJKM5MJB0XJJYA","ecs-fargate-deployer",null,"Deploys AWS ECS Fargate services with production-grade configuration: right-sized task definition (CPU\u002Fmemory combos, Fargate sizing), container definitions (image, port mappings, env vars, health checks), service definition (desired count, deployment circuit breaker, minimum healthy percent), awsvpc networking (security groups, subnets), ALB integration (target group, listener rules), target-tracking auto-scaling (CPU\u002Fmemory\u002FALB request count), separate task execution role and task role, secrets via Secrets Manager \u002F SSM Parameter Store, FireLens and CloudWatch logging, and latest features (Fargate Spot, EFA, container health check improvements). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when creating a new ECS Fargate service, deploying a container to production, validating an ECS service configuration, or generating deployment CLI and IaC templates. Triggers: ECS Fargate, task definition, service, ALB, auto-scaling, container, deployment, ECS deploy.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ecs-fargate-deployer\ndescription: 'Deploys AWS ECS Fargate services with production-grade configuration: right-sized task definition (CPU\u002Fmemory combos, Fargate sizing), container definitions (image, port mappings, env vars, health checks), service definition (desired count, deployment circuit breaker, minimum healthy percent), awsvpc networking (security groups, subnets), ALB integration (target group, listener rules), target-tracking auto-scaling (CPU\u002Fmemory\u002FALB request count), separate task execution role and task role, secrets via Secrets Manager \u002F SSM Parameter Store, FireLens and CloudWatch logging, and latest features (Fargate Spot, EFA, container health check improvements). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when creating a new ECS Fargate service, deploying a container to production, validating an ECS service configuration, or generating deployment CLI and IaC templates. Triggers: ECS Fargate, task definition, service, ALB, auto-scaling, container, deployment, ECS deploy.'\nlicense: Apache-2.0\ncompatibility: 'Requires an LLM agent runtime (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with ecs, ec2, iam, elasticloadbalancingv2, servicediscovery, logs, secretsmanager, and ssm access. Works with Terraform aws_ecs_service \u002F aws_ecs_task_definition resources, CloudFormation AWS::ECS::* resources, and AWS Copilot.'\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '1'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Compute\n  task_type: deploy\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  tags: aws, ecs, fargate, cloudops, deploy, containers, task-definition, awsvpc, alb, auto-scaling\n  dependencies: aws-orchestrator\n  keywords: aws, ecs, fargate, cloudops, deploy, provisioning, containers, task-definition, awsvpc, alb, target-group, auto-scaling, circuit-breaker, firelens, fargate-spot\n  when_to_use: Invoke when the user wants to create a new ECS Fargate service, deploy a container workload to Fargate, validate an existing ECS service configuration against best practices, generate deployment CLI commands or IaC templates, or troubleshoot a Fargate deployment failure caused by missing prerequisites (task definition, subnets, ALB, execution role, secrets). Do NOT invoke for ECS on EC2 deployments (use an EC2-launch-type-specific skill) or for EKS deployments (use an EKS skill).\n---\n\n# ECS Fargate Deployer\n\nAn AWS CloudOps agent skill that deploys Amazon ECS services on Fargate\nwith correct production defaults. Emits a READY_TO_DEPLOY checklist\nverifying every configuration item.\n\n## Quick navigation\n\n| Need | Section |\n|---|---|\n| What MUST be in the response | \"STRICT output contract\" |\n| Why the deployment order matters | \"Reasoning framework\" |\n| What to verify before deploying | \"Prerequisites\" |\n| The ordered deployment steps | \"Deployment procedure\" |\n| Common silent-failure pitfalls | \"NEVER\" |\n| Workload-specific defaults | \"Workload matrix\" |\n| 2024-2026 feature changes | \"Recent AWS features\" |\n| Deep CLI sequences | `references\u002Fdeployment-cli-commands.md` |\n| Networking, ALB, auto-scaling, full NEVER, edge cases | `references\u002Fnetworking-and-scaling-guide.md` |\n\n## STRICT output contract\n\nWhen this skill is invoked with an ECS Fargate deployment request, the\nagent MUST respond with the READY_TO_DEPLOY checklist defined in \"Output\nformat\" using the literal all-caps labels `SERVICE:`, `VERDICT:`,\n`CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface the checklist\nwith prose, headings, or disclaimers — emit the block as the first lines.\n\n### Required output structure\n\n1. `SERVICE: \u003Cservice-name>` — the ECS service being deployed.\n2. `VERDICT: READY_TO_DEPLOY` OR `VERDICT: PREREQUISITES_MISSING`.\n3. `CHECKLIST:` followed by indented lines with status markers\n   (`[✓]`, `[✗]`, `[OPTIONAL]`, `[INPUT NEEDED]`).\n4. `VERIFICATION_COMMANDS:` followed by indented `aws ecs ...` commands.\n\n### FORBIDDEN output patterns\n\n- **No prose preamble before `SERVICE:`** — first non-empty line MUST be\n  `SERVICE:`.\n- **No markdown variants of labels** — write `VERDICT:`, not `**VERDICT:**`,\n  `### Verdict`, or `` `VERDICT` ``.\n- **No swapping verdict tokens** — exactly `READY_TO_DEPLOY` or\n  `PREREQUISITES_MISSING`.\n- **No omitting `VERIFICATION_COMMANDS:`** — include even when\n  PREREQUISITES_MISSING.\n- **No extra sections after `VERIFICATION_COMMANDS:`** — the checklist\n  block is the entire response.\n- **No status marker drift** — use only `[✓]`, `[✗]`, `[OPTIONAL]`,\n  `[INPUT NEEDED]`.\n\n### Perfect example (copy the shape exactly)\n\n```text\nSERVICE: payments-api-prod\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓]      Cluster — payments-prod (Fargate capacity provider)\n  [✓]      Task definition — payments-api:5 (0.5 vCPU \u002F 1024 MB)\n  [✓]      Container — 123456789012.dkr.ecr.us-east-1.amazonaws.com\u002Fpayments-api:1.2.3\n  [✓]      Container health check — GET \u002Fhealthz (30s interval, 5s timeout, 3 retries)\n  [✓]      Networking — awsvpc, subnets subnet-aaa\u002Fsubnet-bbb, sg-payments-api\n  [✓]      Load balancer — ALB tg-payments-api:8080 (target type ip)\n  [✓]      Desired count — 3 (across 3 AZs)\n  [✓]      Deployment circuit breaker — enabled with rollback\n  [✓]      Minimum healthy percent — 100% \u002F Maximum percent — 200%\n  [✓]      Execution role — payments-exec (ECR + Secrets Manager + SSM)\n  [✓]      Task role — payments-task (DynamoDB + S3 scoped)\n  [✓]      Secrets — DB_PASSWORD from secretsmanager:payments\u002Fdb:arn\n  [✓]      Logging — FireLens → CloudWatch \u002Fecs\u002Fpayments-api, retention 30 days\n  [✓]      Auto-scaling — target tracking 60% CPU, min 3 \u002F max 12\nVERIFICATION_COMMANDS:\n  aws ecs describe-services --cluster payments-prod --services payments-api-prod\n  aws ecs describe-task-definition --task-definition payments-api:5\n  aws ecs describe-services --cluster payments-prod --services payments-api-prod --query 'services[0].deployments'\n  aws ec2 describe-security-groups --group-ids sg-payments-api\n  aws elbv2 describe-target-groups --target-group-arns arn:aws:elasticloadbalancing:us-east-1:123456789012:targetgroup\u002Ftg-payments-api\u002Fabc\n  aws logs describe-log-groups --log-group-name-prefix \u002Fecs\u002Fpayments-api\n  aws application-autoscaling describe-scaling-policies --service-namespace ecs --resource-id service\u002Fpayments-prod\u002Fpayments-api-prod\n```\n\n## Reasoning framework (why the deployment order matters)\n\n1. **Task definition FIRST** — a service cannot be created without a valid\n   `taskDefinition` ARN. Creating the service first returns `ClientException`.\n2. **Execution role + task role (separate!)** — execution role pulls ECR\n   image, retrieves secrets, writes logs. Task role is the app's runtime\n   identity. Conflating them is the #1 IAM mistake on Fargate.\n3. **Cluster + capacity provider** — Fargate and Fargate Spot are capacity\n   providers, not launch types. The launch-type API does not support Spot.\n4. **Networking (awsvpc + subnets + SG)** — Fargate REQUIRES\n   `networkMode: awsvpc`. Use private subnets across >= 2 AZs. Without a\n   NAT Gateway, AWS SDK calls fail silently with timeouts.\n5. **Load balancer integration** — ALB target group MUST use\n   `target_type=ip` (awsvpc tasks register by ENI private IP).\n6. **Container health check + circuit breaker** — without a container-level\n   health check, the circuit breaker cannot fire.\n7. **Auto-scaling** — apply AFTER the service is stable, not during\n   deployment.\n\n## Prerequisites (verify before deployment)\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| **Cluster** | Must exist with Fargate capacity provider. | `aws ecs describe-clusters --clusters \u003Cname>` |\n| **Container image** | ECR image URI with valid tag. | `aws ecr describe-images --repository-name \u003Crepo> --image-ids imageTag=\u003Ctag>` |\n| **VPC subnets** | Private subnets in >= 2 AZs. | `aws ec2 describe-subnets --subnet-ids \u003Cids>` |\n| **Security group** | Inbound to container ports + outbound for deps. | `aws ec2 describe-security-groups --group-ids \u003Csg>` |\n| **ALB target group** (if ALB) | `target_type=ip` required. | `aws elbv2 describe-target-groups --target-group-arns \u003Carn>` |\n| **ALB listener** (if ALB) | Listener to attach rules to. | `aws elbv2 describe-listeners --listener-arns \u003Carn>` |\n| **Execution role** | Trust `ecs-tasks.amazonaws.com`. ECR + Secrets + logs perms. | `aws iam get-role --role-name \u003Cexec-role>` |\n| **Task role** | Application permissions (DynamoDB, S3, etc.). | `aws iam get-role --role-name \u003Ctask-role>` |\n| **Secrets ARNs** (if secrets) | Secrets Manager or SSM Parameter exists. | `aws secretsmanager describe-secret --secret-id \u003Cid>` |\n| **CloudWatch log group** | ECS does NOT auto-create log groups. Pre-create with retention. | `aws logs describe-log-groups --log-group-name-prefix \u002Fecs\u002F\u003Cservice>` |\n| **KMS key** (if encrypted) | Grant execution role `kms:Decrypt`. | `aws kms describe-key --key-id \u003Calias>` |\n\n## Deployment procedure (apply in order)\n\n### Step 1: Task execution role + task role (separate)\n\n**Two distinct roles. Never combine them.**\n\nTrust policy (both roles):\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [{\n    \"Effect\": \"Allow\",\n    \"Principal\": { \"Service\": \"ecs-tasks.amazonaws.com\" },\n    \"Action\": \"sts:AssumeRole\"\n  }]\n}\n```\n\n**Execution role** — ECS agent uses it to pull ECR image, retrieve secrets,\nwrite logs. Attach `AmazonECSTaskExecutionRolePolicy` plus any\nsecrets\u002FKMS permissions:\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\"Effect\": \"Allow\", \"Action\": [\"ecr:BatchCheckLayerAvailability\", \"ecr:GetDownloadUrlForLayer\", \"ecr:BatchGetImage\"], \"Resource\": \"arn:aws:ecr:\u003Cregion>:\u003Cacct>:repository\u002F\u003Crepo>\"},\n    {\"Effect\": \"Allow\", \"Action\": [\"ecr:GetAuthorizationToken\"], \"Resource\": \"*\"},\n    {\"Effect\": \"Allow\", \"Action\": [\"logs:CreateLogStream\", \"logs:PutLogEvents\"], \"Resource\": \"arn:aws:logs:\u003Cregion>:\u003Cacct>:log-group:\u002Fecs\u002F\u003Cservice>:*\"},\n    {\"Effect\": \"Allow\", \"Action\": [\"secretsmanager:GetSecretValue\", \"ssm:GetParameters\"], \"Resource\": [\"arn:aws:secretsmanager:\u003Cregion>:\u003Cacct>:secret:\u003Cname>*\"]},\n    {\"Effect\": \"Allow\", \"Action\": [\"kms:Decrypt\"], \"Resource\": \"arn:aws:kms:\u003Cregion>:\u003Cacct>:key\u002F\u003Cid>\"}\n  ]\n}\n```\n\n**Task role** — assumed by application code at runtime. Scope to specific\nAWS resources (DynamoDB, S3, SQS). Has nothing to do with image pulls.\n\n| Workload | Task role permissions |\n|---|---|\n| API backend (DynamoDB) | `dynamodb:GetItem`, `PutItem`, `Query` on table ARN |\n| Queue consumer (SQS) | `sqs:ReceiveMessage`, `DeleteMessage` on queue ARN |\n| S3 processor | `s3:GetObject`, `PutObject` on bucket ARN |\n\n**NEVER use `AdministratorAccess` on either role.**\n\n### Step 2: Task definition (CPU\u002Fmemory combos)\n\nFargate enforces **specific CPU\u002Fmemory combinations**. Any other combo\nfails with `ClientException`.\n\n| CPU (vCPU) | Memory options (GB) |\n|---|---|\n| 0.25 | 0.5, 1, 2 |\n| 0.5 | 1, 2, 3, 4 |\n| 1 | 2, 3, 4, 5, 6, 7, 8 |\n| 2 | 4, 5, 6, ..., 16 |\n| 4 | 8, 9, 10, ..., 30 |\n| 8 | 16, 17, ..., 60 |\n| 16 | 32, 33, ..., 120 |\n\nCPU units: 256 = 0.25 vCPU. Memory: 1024 = 1 GB.\n\n| Workload | CPU | Memory | Rationale |\n|---|---|---|---|\n| Lightweight API | 0.25 vCPU | 0.5 GB | Low traffic, fast startup |\n| Standard API | 0.5 vCPU | 1 GB | Typical Node\u002FPython API |\n| Heavy API (ML inference) | 1-2 vCPU | 4-8 GB | Parallel processing |\n| Worker (queue consumer) | 0.5-1 vCPU | 1-2 GB | I\u002FO-bound |\n| Java\u002FJVM (Spring Boot) | 1-2 vCPU | 4-8 GB | JVM heap; always >= 2 GB |\n\n**Architecture:** Fargate supports `X86_64` (default) and `ARM64`\n(Graviton, up to 20% price-performance). Set `runtimePlatform.cpuArchitecture`.\n\n### Step 3: Container definitions\n\n```json\n[{\n  \"name\": \"app\",\n  \"image\": \"123456789012.dkr.ecr.us-east-1.amazonaws.com\u002Fpayments-api:1.2.3\",\n  \"cpu\": 512, \"memory\": 1024, \"essential\": true,\n  \"portMappings\": [{\"containerPort\": 8080, \"protocol\": \"tcp\"}],\n  \"environment\": [{\"name\": \"LOG_LEVEL\", \"value\": \"info\"}],\n  \"secrets\": [{\"name\": \"DB_PASSWORD\", \"valueFrom\": \"arn:aws:secretsmanager:us-east-1:123456789012:secret:payments\u002Fdb-XXXXXX\"}],\n  \"logConfiguration\": {\"logDriver\": \"awslogs\", \"options\": {\"awslogs-group\": \"\u002Fecs\u002Fpayments-api\", \"awslogs-region\": \"us-east-1\", \"awslogs-stream-prefix\": \"ecs\"}},\n  \"healthCheck\": {\"command\": [\"CMD-SHELL\", \"curl -f http:\u002F\u002Flocalhost:8080\u002Fhealthz || exit 1\"], \"interval\": 30, \"timeout\": 5, \"retries\": 3, \"startPeriod\": 60}\n}]\n```\n\nKey fields: **image** (full ECR URI, NEVER `:latest`), **portMappings**\n(`hostPort` ignored on Fargate), **environment** (plaintext only, NEVER\nsecrets), **secrets** (injected at start via ARN reference), **healthCheck**\n(`startPeriod` gives grace time), **essential** (true = failure stops task).\n\n### Step 4: Service definition\n\n```bash\naws ecs create-service \\\n  --cluster payments-prod \\\n  --service-name payments-api-prod \\\n  --task-definition payments-api:5 \\\n  --desired-count 3 \\\n  --launch-type FARGATE \\\n  --network-configuration \"awsvpcConfiguration={subnets=[subnet-aaa,subnet-bbb],securityGroups=[sg-payments-api],assignPublicIp=DISABLED}\" \\\n  --load-balancers \"targetGroupArn=arn:aws:elasticloadbalancing:us-east-1:123456789012:targetgroup\u002Ftg-payments-api\u002Fabc,containerName=app,containerPort=8080\" \\\n  --deployment-configuration \"deploymentCircuitBreaker={enable=true,rollback=true},minimumHealthyPercent=100,maximumPercent=200\" \\\n  --scheduling-strategy REPLICA\n```\n\nKey fields:\n- **desiredCount** — >= 2 across >= 2 AZs for HA.\n- **deploymentCircuitBreaker** — `enable=true, rollback=true` auto-rolls\n  back failed deployments. Without it, a bad task definition leaves service\n  degraded indefinitely.\n- **minimumHealthyPercent=100** — old tasks stay until new ones are healthy.\n- **maximumPercent=200** — allows rolling double during deployment.\n- **assignPublicIp=DISABLED** for private subnets (production).\n\nCapacity-provider-strategy create-service variant moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad on demand when deploying with FARGATE + FARGATE_SPOT burst capacity.\n\n`base=2` guarantees 2 On-Demand tasks; remaining split 4:1 between\nFARGATE and FARGATE_SPOT. Spot interruption drains tasks gracefully via\nthe 2-minute warning.\n\n### Step 5: Networking (awsvpc mode)\n\nFargate REQUIRES `networkMode: awsvpc`. Each task gets a primary ENI.\n\n- **Use PRIVATE subnets** in production. Tasks do not need public IPs.\n- **Spread across >= 2 AZs.** Set `availabilityZoneRebalancing=ENABLED`.\n- **NAT Gateway for internet access** — #1 Fargate networking issue.\n  Without it, task cannot reach ECR, AWS SDK endpoints, or external APIs.\n- **VPC endpoints** for high-volume traffic (S3, DynamoDB, ECR) to avoid\n  NAT Gateway charges. Gateway endpoints (S3, DynamoDB) are free.\n- **Security group** — inbound from ALB SG on container port, outbound for\n  dependencies.\n\nFull networking reference in `references\u002Fnetworking-and-scaling-guide.md`.\n\n### Step 6: Load balancer integration (ALB)\n\n```bash\naws elbv2 create-target-group \\\n  --name tg-payments-api --protocol HTTP --port 8080 --vpc-id vpc-xxx \\\n  --target-type ip --health-check-path \u002Fhealthz \\\n  --health-check-interval-seconds 30 --healthy-threshold-count 2 \\\n  --unhealthy-threshold-count 3 --matcher HttpCode=200\n```\n\n**Critical:** ALB health check path MUST match the container health check\npath. A mismatch causes the ALB to mark the task unhealthy even when ECS\nconsiders it healthy.\n\n### Step 7: Secrets (Secrets Manager \u002F SSM Parameter Store)\n\nSecrets are injected as environment variables at container start. NOT\nvisible in the task definition (only the ARN is).\n\n```json\n\"secrets\": [\n  {\"name\": \"DB_PASSWORD\", \"valueFrom\": \"arn:aws:secretsmanager:us-east-1:123456789012:secret:payments\u002Fdb-XXXXXX\"},\n  {\"name\": \"API_KEY\", \"valueFrom\": \"arn:aws:ssm:us-east-1:123456789012:parameter\u002Fpayments\u002Fapi-key\"}\n]\n```\n\nExecution role needs `secretsmanager:GetSecretValue` or `ssm:GetParameters`\nplus `kms:Decrypt` if a customer-managed KMS key is used.\n\n### Step 8: Logging (FireLens \u002F CloudWatch)\n\n**awslogs driver (default):**\n```json\n\"logConfiguration\": {\n  \"logDriver\": \"awslogs\",\n  \"options\": {\"awslogs-group\": \"\u002Fecs\u002Fpayments-api\", \"awslogs-region\": \"us-east-1\", \"awslogs-stream-prefix\": \"ecs\"}\n}\n```\n\n**FireLens (advanced routing):** route different log streams to different\ndestinations (audit → S3, app → CloudWatch, metrics → Kinesis). Uses a\nsidecar container with `firelensConfiguration: {type: fluentbit}`.\n\nPre-create the log group with retention — ECS does NOT auto-create:\n```bash\naws logs create-log-group --log-group-name \u002Fecs\u002Fpayments-api\naws logs put-retention-policy --log-group-name \u002Fecs\u002Fpayments-api --retention-in-days 30\n```\n\n### Step 9: Auto-scaling (target tracking)\n\nStep 9 auto-scaling CLI (register-scalable-target + put-scaling-policy) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad on demand when applying target-tracking auto-scaling after the service is stable.\n\nMetrics: `ECSServiceAverageCPUUtilization`, `ECSServiceAverageMemoryUtilization`,\n`ALBRequestCountPerTarget`. Cooldown: scale-out 60s, scale-in 300s (never\n\u003C 300s to avoid flapping).\n\n### Step 10: Verification\n\nStep 10 verification commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand for post-deployment verification.\n\n## Latest ECS Fargate features (2024-2026)\n\nLatest ECS Fargate features (2024-2026) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand for Spot capacity providers, EFA, health-check START_PERIOD, AZ rebalancing, circuit-breaker rollback, Graviton, platform versions, ECS Exec.\n\n## Workload matrix\n\n| Workload | CPU \u002F Memory | AZ count | LB | Auto-scale | Spot | Logging |\n|---|---|---|---|---|---|---|\n| **Public API** | 0.5 vCPU \u002F 1 GB | 3 | ALB | CPU 60% | No | awslogs |\n| **Internal API** | 0.5 vCPU \u002F 1 GB | 2 | Internal ALB | CPU 60% | Optional | awslogs |\n| **Queue worker (SQS)** | 0.5-1 vCPU \u002F 1-2 GB | 2 | None | Queue depth | Yes | awslogs |\n| **Scheduled batch** | 1-2 vCPU \u002F 2-4 GB | 1 | None | None | Yes | awslogs |\n| **ML inference** | 4 vCPU \u002F 16 GB | 2 | ALB | CPU 70% | No | FireLens |\n| **Streaming (Kinesis)** | 1 vCPU \u002F 2 GB | 2 | None | None | No | awslogs |\n| **Java\u002FSpring Boot** | 1-2 vCPU \u002F 4-8 GB | 3 | ALB | CPU 65% | No | awslogs + startPeriod 60s |\n\n## NEVER (top 5 — full list of 14 in references)\n\n- NEVER use `:latest` image tag in production. It is mutable — a new push\n  silently changes what runs. Pin to a version tag or SHA digest. #1\n  rollback-breaker.\n- NEVER combine the execution role and task role into one. Execution role\n  pulls images and writes logs; task role is the app's identity. Combining\n  produces pull failures or least-privilege violations.\n- NEVER use a target group with `target_type=instance` for Fargate. Fargate\n  tasks register by ENI private IP — only `target_type=ip` works. Silently\n  fails registration.\n- NEVER deploy Fargate tasks to a public subnet with\n  `assignPublicIp=ENABLED` in production. Use private subnets + NAT\n  Gateway or VPC endpoints.\n- NEVER deploy without the deployment circuit breaker when using rolling\n  deployments. Without `enable=true, rollback=true`, a bad task definition\n  leaves the service degraded indefinitely.\n\n## Expert heuristic — choosing CPU, memory, and AZ spread\n\nExpert heuristic (60\u002F70 rule, memory sizing, AZ spread, Spot blend, ALB vs NLB) moved verbatim to [references\u002Fnetworking-and-scaling-guide.md](references\u002Fnetworking-and-scaling-guide.md).\nLoad on demand when choosing CPU, memory, and AZ spread.\n\n## Pre-flight safety checks (run before any deployment CLI)\n\n- **Confirm cluster exists with Fargate capacity provider.**\n- **Confirm ECR image exists** — missing image causes `CannotPullContainerError`.\n- **Confirm both roles exist** and trust `ecs-tasks.amazonaws.com`.\n- **Confirm target group is `target_type=ip`** — `instance` silently fails.\n- **Confirm subnets are private and span >= 2 AZs.**\n- **Pre-create CloudWatch log group with retention.**\n- **For existing services, capture current config for rollback.**\n\nFull CLI sequences for all checks in `references\u002Fnetworking-and-scaling-guide.md`.\n\n## Output format — MANDATORY literal labels\n\nWhen invoked with a service deployment request, your ENTIRE response MUST\nbe the checklist block below. The labels are **case-sensitive all-caps\nkeywords**. Do NOT write a preamble. Start with `SERVICE:` and stop after\nthe `VERIFICATION_COMMANDS:` block.\n\n```text\nSERVICE: \u003Cname>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓]      Cluster — \u003Ccluster> (Fargate capacity provider)\n  [✓]      Task definition — \u003Cfamily>:\u003Crev> (\u003Ccpu> vCPU \u002F \u003Cmemory> MB)\n  [✓]      Container — \u003Cimage-uri>\n  [✓]      Container health check — \u003Cpath> (\u003Cinterval>, \u003Ctimeout>, \u003Cretries>)\n  [✓]      Networking — awsvpc, subnets \u003Csubnets>, sg-\u003Cname>\n  [✓]      Load balancer — ALB \u003Ctg-name>:\u003Cport> (target type ip)\n  [✓]      Desired count — \u003Cn> (across \u003Caz-count> AZs)\n  [✓]      Deployment circuit breaker — enabled with rollback\n  [✓]      Minimum healthy percent — 100% \u002F Maximum percent — 200%\n  [✓]      Execution role — \u003Cexec-role> (ECR + Secrets Manager + logs)\n  [✓]      Task role — \u003Ctask-role> (\u003Cservice-specific permissions>)\n  [✓]      Secrets — \u003Csecret-names> from secretsmanager \u002F ssm\n  [✓]      Logging — FireLens \u002F awslogs → CloudWatch \u002Fecs\u002F\u003Cname>, retention \u003Cdays>\n  [OPTIONAL] Auto-scaling — target tracking \u003Cmetric> \u003Ctarget>, min \u003Cx> \u002F max \u003Cy>\nVERIFICATION_COMMANDS:\n  aws ecs describe-services --cluster \u003Ccluster> --services \u003Cname>\n  aws ecs describe-task-definition --task-definition \u003Cfamily>:\u003Crev>\n  aws ec2 describe-security-groups --group-ids \u003Csg>\n  aws elbv2 describe-target-health --target-group-arn \u003Ctg-arn>\n  aws logs describe-log-groups --log-group-name-prefix \u002Fecs\u002F\u003Cname>\n```\n\n**Status marker semantics:**\n- `[✓]` — applied and verified.\n- `[✗]` — NOT applied or misconfigured. Cite the gap.\n- `[OPTIONAL]` — recommended but not required.\n- `[INPUT NEEDED]` — prerequisite value missing; operator must provide.\n\n**PREREQUISITES_MISSING verdict:** if any REQUIRED prerequisite is missing\n(cluster, task definition, subnets, execution role, target group ARN for\nALB-fronted service), the verdict is `PREREQUISITES_MISSING`.\n\n## References (load on demand)\n\n- [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md) — full copy-pasteable CLI for all 10 deployment steps, plus the capacity-provider-strategy variant and auto-scaling CLI moved from SKILL.md.\n- [references\u002Fnetworking-and-scaling-guide.md](references\u002Fnetworking-and-scaling-guide.md) — awsvpc networking, ALB integration, auto-scaling, Spot strategy, full NEVER list, plus the expert heuristic and edge-case quick list moved from SKILL.md.\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 10 verification commands moved from SKILL.md.\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — latest ECS Fargate features (2024-2026) moved from SKILL.md.\n\n## Domain\n\nAWS CloudOps \u002F ECS Fargate Container Compute Provisioning.\n\n## Edge-case handling\n\nEdge-case quick list moved verbatim to [references\u002Fnetworking-and-scaling-guide.md](references\u002Fnetworking-and-scaling-guide.md).\nLoad on demand for cross-account ECR, ECS Exec, health-check divergence, slow-start JVM, Spot drain, capacity-provider lock-in, Service Connect\u002FCloud Map.\n\n## AWS documentation\n\n- **Amazon ECS Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002FWelcome.html\n- **ECS Fargate** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002FAWS_Fargate.html\n- **ECS Task Definition** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Ftask_definitions.html\n- **ECS Service** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Fecs_services.html\n- **Fargate CPU\u002FMemory** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Ftask_definition_parameters.html#task_size\n- **ECS Capacity Providers** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Fcluster-capacity-providers.html\n- **ECS Deployment Circuit Breaker** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Fdeployment-circuit-breaker.html\n- **ECS Logging with FireLens** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Fusing_firelens.html\n- **ECS CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fecs\u002F\n\n## References\n\n- `references\u002Fdeployment-cli-commands.md` — full copy-pasteable CLI command\n  sequence for all 10 deployment steps, including execution role + task role\n  creation, task definition registration, service creation, ALB target group\n  + listener rule, auto-scaling, and Terraform equivalents.\n\n- `references\u002Fnetworking-and-scaling-guide.md` — deep reference on awsvpc\n  networking (ENI lifecycle, NAT Gateway vs VPC endpoints), ALB integration,\n  target-tracking auto-scaling, Fargate Spot strategy, full NEVER list,\n  edge-case handling, expert heuristics, and pre-flight safety CLI.\n","# ECS Fargate Deployer\n\nAn AWS CloudOps agent skill that deploys Amazon ECS services on Fargate\nwith correct production defaults. Emits a READY_TO_DEPLOY checklist\nverifying every configuration item.\n\n## Quick navigation\n\n| Need | Section |\n|---|---|\n| What MUST be in the response | \"STRICT output contract\" |\n| Why the deployment order matters | \"Reasoning framework\" |\n| What to verify before deploying | \"Prerequisites\" |\n| The ordered deployment steps | \"Deployment procedure\" |\n| Common silent-failure pitfalls | \"NEVER\" |\n| Workload-specific defaults | \"Workload matrix\" |\n| 2024-2026 feature changes | \"Recent AWS features\" |\n| Deep CLI sequences | `references\u002Fdeployment-cli-commands.md` |\n| Networking, ALB, auto-scaling, full NEVER, edge cases | `references\u002Fnetworking-and-scaling-guide.md` |\n\n## STRICT output contract\n\nWhen this skill is invoked with an ECS Fargate deployment request, the\nagent MUST respond with the READY_TO_DEPLOY checklist defined in \"Output\nformat\" using the literal all-caps labels `SERVICE:`, `VERDICT:`,\n`CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface the checklist\nwith prose, headings, or disclaimers — emit the block as the first lines.\n\n### Required output structure\n\n1. `SERVICE: \u003Cservice-name>` — the ECS service being deployed.\n2. `VERDICT: READY_TO_DEPLOY` OR `VERDICT: PREREQUISITES_MISSING`.\n3. `CHECKLIST:` followed by indented lines with status markers\n   (`[✓]`, `[✗]`, `[OPTIONAL]`, `[INPUT NEEDED]`).\n4. `VERIFICATION_COMMANDS:` followed by indented `aws ecs ...` commands.\n\n### FORBIDDEN output patterns\n\n- **No prose preamble before `SERVICE:`** — first non-empty line MUST be\n  `SERVICE:`.\n- **No markdown variants of labels** — write `VERDICT:`, not `**VERDICT:**`,\n  `### Verdict`, or `` `VERDICT` ``.\n- **No swapping verdict tokens** — exactly `READY_TO_DEPLOY` or\n  `PREREQUISITES_MISSING`.\n- **No omitting `VERIFICATION_COMMANDS:`** — include even when\n  PREREQUISITES_MISSING.\n- **No extra sections after `VERIFICATION_COMMANDS:`** — the checklist\n  block is the entire response.\n- **No status marker drift** — use only `[✓]`, `[✗]`, `[OPTIONAL]`,\n  `[INPUT NEEDED]`.\n\n### Perfect example (copy the shape exactly)\n\n```text\nSERVICE: payments-api-prod\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓]      Cluster — payments-prod (Fargate capacity provider)\n  [✓]      Task definition — payments-api:5 (0.5 vCPU \u002F 1024 MB)\n  [✓]      Container — 123456789012.dkr.ecr.us-east-1.amazonaws.com\u002Fpayments-api:1.2.3\n  [✓]      Container health check — GET \u002Fhealthz (30s interval, 5s timeout, 3 retries)\n  [✓]      Networking — awsvpc, subnets subnet-aaa\u002Fsubnet-bbb, sg-payments-api\n  [✓]      Load balancer — ALB tg-payments-api:8080 (target type ip)\n  [✓]      Desired count — 3 (across 3 AZs)\n  [✓]      Deployment circuit breaker — enabled with rollback\n  [✓]      Minimum healthy percent — 100% \u002F Maximum percent — 200%\n  [✓]      Execution role — payments-exec (ECR + Secrets Manager + SSM)\n  [✓]      Task role — payments-task (DynamoDB + S3 scoped)\n  [✓]      Secrets — DB_PASSWORD from secretsmanager:payments\u002Fdb:arn\n  [✓]      Logging — FireLens → CloudWatch \u002Fecs\u002Fpayments-api, retention 30 days\n  [✓]      Auto-scaling — target tracking 60% CPU, min 3 \u002F max 12\nVERIFICATION_COMMANDS:\n  aws ecs describe-services --cluster payments-prod --services payments-api-prod\n  aws ecs describe-task-definition --task-definition payments-api:5\n  aws ecs describe-services --cluster payments-prod --services payments-api-prod --query 'services[0].deployments'\n  aws ec2 describe-security-groups --group-ids sg-payments-api\n  aws elbv2 describe-target-groups --target-group-arns arn:aws:elasticloadbalancing:us-east-1:123456789012:targetgroup\u002Ftg-payments-api\u002Fabc\n  aws logs describe-log-groups --log-group-name-prefix \u002Fecs\u002Fpayments-api\n  aws application-autoscaling describe-scaling-policies --service-namespace ecs --resource-id service\u002Fpayments-prod\u002Fpayments-api-prod\n```\n\n## Reasoning framework (why the deployment order matters)\n\n1. **Task definition FIRST** — a service cannot be created without a valid\n   `taskDefinition` ARN. Creating the service first returns `ClientException`.\n2. **Execution role + task role (separate!)** — execution role pulls ECR\n   image, retrieves secrets, writes logs. Task role is the app's runtime\n   identity. Conflating them is the #1 IAM mistake on Fargate.\n3. **Cluster + capacity provider** — Fargate and Fargate Spot are capacity\n   providers, not launch types. The launch-type API does not support Spot.\n4. **Networking (awsvpc + subnets + SG)** — Fargate REQUIRES\n   `networkMode: awsvpc`. Use private subnets across >= 2 AZs. Without a\n   NAT Gateway, AWS SDK calls fail silently with timeouts.\n5. **Load balancer integration** — ALB target group MUST use\n   `target_type=ip` (awsvpc tasks register by ENI private IP).\n6. **Container health check + circuit breaker** — without a container-level\n   health check, the circuit breaker cannot fire.\n7. **Auto-scaling** — apply AFTER the service is stable, not during\n   deployment.\n\n## Prerequisites (verify before deployment)\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| **Cluster** | Must exist with Fargate capacity provider. | `aws ecs describe-clusters --clusters \u003Cname>` |\n| **Container image** | ECR image URI with valid tag. | `aws ecr describe-images --repository-name \u003Crepo> --image-ids imageTag=\u003Ctag>` |\n| **VPC subnets** | Private subnets in >= 2 AZs. | `aws ec2 describe-subnets --subnet-ids \u003Cids>` |\n| **Security group** | Inbound to container ports + outbound for deps. | `aws ec2 describe-security-groups --group-ids \u003Csg>` |\n| **ALB target group** (if ALB) | `target_type=ip` required. | `aws elbv2 describe-target-groups --target-group-arns \u003Carn>` |\n| **ALB listener** (if ALB) | Listener to attach rules to. | `aws elbv2 describe-listeners --listener-arns \u003Carn>` |\n| **Execution role** | Trust `ecs-tasks.amazonaws.com`. ECR + Secrets + logs perms. | `aws iam get-role --role-name \u003Cexec-role>` |\n| **Task role** | Application permissions (DynamoDB, S3, etc.). | `aws iam get-role --role-name \u003Ctask-role>` |\n| **Secrets ARNs** (if secrets) | Secrets Manager or SSM Parameter exists. | `aws secretsmanager describe-secret --secret-id \u003Cid>` |\n| **CloudWatch log group** | ECS does NOT auto-create log groups. Pre-create with retention. | `aws logs describe-log-groups --log-group-name-prefix \u002Fecs\u002F\u003Cservice>` |\n| **KMS key** (if encrypted) | Grant execution role `kms:Decrypt`. | `aws kms describe-key --key-id \u003Calias>` |\n\n## Deployment procedure (apply in order)\n\n### Step 1: Task execution role + task role (separate)\n\n**Two distinct roles. Never combine them.**\n\nTrust policy (both roles):\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [{\n    \"Effect\": \"Allow\",\n    \"Principal\": { \"Service\": \"ecs-tasks.amazonaws.com\" },\n    \"Action\": \"sts:AssumeRole\"\n  }]\n}\n```\n\n**Execution role** — ECS agent uses it to pull ECR image, retrieve secrets,\nwrite logs. Attach `AmazonECSTaskExecutionRolePolicy` plus any\nsecrets\u002FKMS permissions:\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\"Effect\": \"Allow\", \"Action\": [\"ecr:BatchCheckLayerAvailability\", \"ecr:GetDownloadUrlForLayer\", \"ecr:BatchGetImage\"], \"Resource\": \"arn:aws:ecr:\u003Cregion>:\u003Cacct>:repository\u002F\u003Crepo>\"},\n    {\"Effect\": \"Allow\", \"Action\": [\"ecr:GetAuthorizationToken\"], \"Resource\": \"*\"},\n    {\"Effect\": \"Allow\", \"Action\": [\"logs:CreateLogStream\", \"logs:PutLogEvents\"], \"Resource\": \"arn:aws:logs:\u003Cregion>:\u003Cacct>:log-group:\u002Fecs\u002F\u003Cservice>:*\"},\n    {\"Effect\": \"Allow\", \"Action\": [\"secretsmanager:GetSecretValue\", \"ssm:GetParameters\"], \"Resource\": [\"arn:aws:secretsmanager:\u003Cregion>:\u003Cacct>:secret:\u003Cname>*\"]},\n    {\"Effect\": \"Allow\", \"Action\": [\"kms:Decrypt\"], \"Resource\": \"arn:aws:kms:\u003Cregion>:\u003Cacct>:key\u002F\u003Cid>\"}\n  ]\n}\n```\n\n**Task role** — assumed by application code at runtime. Scope to specific\nAWS resources (DynamoDB, S3, SQS). Has nothing to do with image pulls.\n\n| Workload | Task role permissions |\n|---|---|\n| API backend (DynamoDB) | `dynamodb:GetItem`, `PutItem`, `Query` on table ARN |\n| Queue consumer (SQS) | `sqs:ReceiveMessage`, `DeleteMessage` on queue ARN |\n| S3 processor | `s3:GetObject`, `PutObject` on bucket ARN |\n\n**NEVER use `AdministratorAccess` on either role.**\n\n### Step 2: Task definition (CPU\u002Fmemory combos)\n\nFargate enforces **specific CPU\u002Fmemory combinations**. Any other combo\nfails with `ClientException`.\n\n| CPU (vCPU) | Memory options (GB) |\n|---|---|\n| 0.25 | 0.5, 1, 2 |\n| 0.5 | 1, 2, 3, 4 |\n| 1 | 2, 3, 4, 5, 6, 7, 8 |\n| 2 | 4, 5, 6, ..., 16 |\n| 4 | 8, 9, 10, ..., 30 |\n| 8 | 16, 17, ..., 60 |\n| 16 | 32, 33, ..., 120 |\n\nCPU units: 256 = 0.25 vCPU. Memory: 1024 = 1 GB.\n\n| Workload | CPU | Memory | Rationale |\n|---|---|---|---|\n| Lightweight API | 0.25 vCPU | 0.5 GB | Low traffic, fast startup |\n| Standard API | 0.5 vCPU | 1 GB | Typical Node\u002FPython API |\n| Heavy API (ML inference) | 1-2 vCPU | 4-8 GB | Parallel processing |\n| Worker (queue consumer) | 0.5-1 vCPU | 1-2 GB | I\u002FO-bound |\n| Java\u002FJVM (Spring Boot) | 1-2 vCPU | 4-8 GB | JVM heap; always >= 2 GB |\n\n**Architecture:** Fargate supports `X86_64` (default) and `ARM64`\n(Graviton, up to 20% price-performance). Set `runtimePlatform.cpuArchitecture`.\n\n### Step 3: Container definitions\n\n```json\n[{\n  \"name\": \"app\",\n  \"image\": \"123456789012.dkr.ecr.us-east-1.amazonaws.com\u002Fpayments-api:1.2.3\",\n  \"cpu\": 512, \"memory\": 1024, \"essential\": true,\n  \"portMappings\": [{\"containerPort\": 8080, \"protocol\": \"tcp\"}],\n  \"environment\": [{\"name\": \"LOG_LEVEL\", \"value\": \"info\"}],\n  \"secrets\": [{\"name\": \"DB_PASSWORD\", \"valueFrom\": \"arn:aws:secretsmanager:us-east-1:123456789012:secret:payments\u002Fdb-XXXXXX\"}],\n  \"logConfiguration\": {\"logDriver\": \"awslogs\", \"options\": {\"awslogs-group\": \"\u002Fecs\u002Fpayments-api\", \"awslogs-region\": \"us-east-1\", \"awslogs-stream-prefix\": \"ecs\"}},\n  \"healthCheck\": {\"command\": [\"CMD-SHELL\", \"curl -f http:\u002F\u002Flocalhost:8080\u002Fhealthz || exit 1\"], \"interval\": 30, \"timeout\": 5, \"retries\": 3, \"startPeriod\": 60}\n}]\n```\n\nKey fields: **image** (full ECR URI, NEVER `:latest`), **portMappings**\n(`hostPort` ignored on Fargate), **environment** (plaintext only, NEVER\nsecrets), **secrets** (injected at start via ARN reference), **healthCheck**\n(`startPeriod` gives grace time), **essential** (true = failure stops task).\n\n### Step 4: Service definition\n\n```bash\naws ecs create-service \\\n  --cluster payments-prod \\\n  --service-name payments-api-prod \\\n  --task-definition payments-api:5 \\\n  --desired-count 3 \\\n  --launch-type FARGATE \\\n  --network-configuration \"awsvpcConfiguration={subnets=[subnet-aaa,subnet-bbb],securityGroups=[sg-payments-api],assignPublicIp=DISABLED}\" \\\n  --load-balancers \"targetGroupArn=arn:aws:elasticloadbalancing:us-east-1:123456789012:targetgroup\u002Ftg-payments-api\u002Fabc,containerName=app,containerPort=8080\" \\\n  --deployment-configuration \"deploymentCircuitBreaker={enable=true,rollback=true},minimumHealthyPercent=100,maximumPercent=200\" \\\n  --scheduling-strategy REPLICA\n```\n\nKey fields:\n- **desiredCount** — >= 2 across >= 2 AZs for HA.\n- **deploymentCircuitBreaker** — `enable=true, rollback=true` auto-rolls\n  back failed deployments. Without it, a bad task definition leaves service\n  degraded indefinitely.\n- **minimumHealthyPercent=100** — old tasks stay until new ones are healthy.\n- **maximumPercent=200** — allows rolling double during deployment.\n- **assignPublicIp=DISABLED** for private subnets (production).\n\nCapacity-provider-strategy create-service variant moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad on demand when deploying with FARGATE + FARGATE_SPOT burst capacity.\n\n`base=2` guarantees 2 On-Demand tasks; remaining split 4:1 between\nFARGATE and FARGATE_SPOT. Spot interruption drains tasks gracefully via\nthe 2-minute warning.\n\n### Step 5: Networking (awsvpc mode)\n\nFargate REQUIRES `networkMode: awsvpc`. Each task gets a primary ENI.\n\n- **Use PRIVATE subnets** in production. Tasks do not need public IPs.\n- **Spread across >= 2 AZs.** Set `availabilityZoneRebalancing=ENABLED`.\n- **NAT Gateway for internet access** — #1 Fargate networking issue.\n  Without it, task cannot reach ECR, AWS SDK endpoints, or external APIs.\n- **VPC endpoints** for high-volume traffic (S3, DynamoDB, ECR) to avoid\n  NAT Gateway charges. Gateway endpoints (S3, DynamoDB) are free.\n- **Security group** — inbound from ALB SG on container port, outbound for\n  dependencies.\n\nFull networking reference in `references\u002Fnetworking-and-scaling-guide.md`.\n\n### Step 6: Load balancer integration (ALB)\n\n```bash\naws elbv2 create-target-group \\\n  --name tg-payments-api --protocol HTTP --port 8080 --vpc-id vpc-xxx \\\n  --target-type ip --health-check-path \u002Fhealthz \\\n  --health-check-interval-seconds 30 --healthy-threshold-count 2 \\\n  --unhealthy-threshold-count 3 --matcher HttpCode=200\n```\n\n**Critical:** ALB health check path MUST match the container health check\npath. A mismatch causes the ALB to mark the task unhealthy even when ECS\nconsiders it healthy.\n\n### Step 7: Secrets (Secrets Manager \u002F SSM Parameter Store)\n\nSecrets are injected as environment variables at container start. NOT\nvisible in the task definition (only the ARN is).\n\n```json\n\"secrets\": [\n  {\"name\": \"DB_PASSWORD\", \"valueFrom\": \"arn:aws:secretsmanager:us-east-1:123456789012:secret:payments\u002Fdb-XXXXXX\"},\n  {\"name\": \"API_KEY\", \"valueFrom\": \"arn:aws:ssm:us-east-1:123456789012:parameter\u002Fpayments\u002Fapi-key\"}\n]\n```\n\nExecution role needs `secretsmanager:GetSecretValue` or `ssm:GetParameters`\nplus `kms:Decrypt` if a customer-managed KMS key is used.\n\n### Step 8: Logging (FireLens \u002F CloudWatch)\n\n**awslogs driver (default):**\n```json\n\"logConfiguration\": {\n  \"logDriver\": \"awslogs\",\n  \"options\": {\"awslogs-group\": \"\u002Fecs\u002Fpayments-api\", \"awslogs-region\": \"us-east-1\", \"awslogs-stream-prefix\": \"ecs\"}\n}\n```\n\n**FireLens (advanced routing):** route different log streams to different\ndestinations (audit → S3, app → CloudWatch, metrics → Kinesis). Uses a\nsidecar container with `firelensConfiguration: {type: fluentbit}`.\n\nPre-create the log group with retention — ECS does NOT auto-create:\n```bash\naws logs create-log-group --log-group-name \u002Fecs\u002Fpayments-api\naws logs put-retention-policy --log-group-name \u002Fecs\u002Fpayments-api --retention-in-days 30\n```\n\n### Step 9: Auto-scaling (target tracking)\n\nStep 9 auto-scaling CLI (register-scalable-target + put-scaling-policy) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad on demand when applying target-tracking auto-scaling after the service is stable.\n\nMetrics: `ECSServiceAverageCPUUtilization`, `ECSServiceAverageMemoryUtilization`,\n`ALBRequestCountPerTarget`. Cooldown: scale-out 60s, scale-in 300s (never\n\u003C 300s to avoid flapping).\n\n### Step 10: Verification\n\nStep 10 verification commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand for post-deployment verification.\n\n## Latest ECS Fargate features (2024-2026)\n\nLatest ECS Fargate features (2024-2026) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand for Spot capacity providers, EFA, health-check START_PERIOD, AZ rebalancing, circuit-breaker rollback, Graviton, platform versions, ECS Exec.\n\n## Workload matrix\n\n| Workload | CPU \u002F Memory | AZ count | LB | Auto-scale | Spot | Logging |\n|---|---|---|---|---|---|---|\n| **Public API** | 0.5 vCPU \u002F 1 GB | 3 | ALB | CPU 60% | No | awslogs |\n| **Internal API** | 0.5 vCPU \u002F 1 GB | 2 | Internal ALB | CPU 60% | Optional | awslogs |\n| **Queue worker (SQS)** | 0.5-1 vCPU \u002F 1-2 GB | 2 | None | Queue depth | Yes | awslogs |\n| **Scheduled batch** | 1-2 vCPU \u002F 2-4 GB | 1 | None | None | Yes | awslogs |\n| **ML inference** | 4 vCPU \u002F 16 GB | 2 | ALB | CPU 70% | No | FireLens |\n| **Streaming (Kinesis)** | 1 vCPU \u002F 2 GB | 2 | None | None | No | awslogs |\n| **Java\u002FSpring Boot** | 1-2 vCPU \u002F 4-8 GB | 3 | ALB | CPU 65% | No | awslogs + startPeriod 60s |\n\n## NEVER (top 5 — full list of 14 in references)\n\n- NEVER use `:latest` image tag in production. It is mutable — a new push\n  silently changes what runs. Pin to a version tag or SHA digest. #1\n  rollback-breaker.\n- NEVER combine the execution role and task role into one. Execution role\n  pulls images and writes logs; task role is the app's identity. Combining\n  produces pull failures or least-privilege violations.\n- NEVER use a target group with `target_type=instance` for Fargate. Fargate\n  tasks register by ENI private IP — only `target_type=ip` works. Silently\n  fails registration.\n- NEVER deploy Fargate tasks to a public subnet with\n  `assignPublicIp=ENABLED` in production. Use private subnets + NAT\n  Gateway or VPC endpoints.\n- NEVER deploy without the deployment circuit breaker when using rolling\n  deployments. Without `enable=true, rollback=true`, a bad task definition\n  leaves the service degraded indefinitely.\n\n## Expert heuristic — choosing CPU, memory, and AZ spread\n\nExpert heuristic (60\u002F70 rule, memory sizing, AZ spread, Spot blend, ALB vs NLB) moved verbatim to [references\u002Fnetworking-and-scaling-guide.md](references\u002Fnetworking-and-scaling-guide.md).\nLoad on demand when choosing CPU, memory, and AZ spread.\n\n## Pre-flight safety checks (run before any deployment CLI)\n\n- **Confirm cluster exists with Fargate capacity provider.**\n- **Confirm ECR image exists** — missing image causes `CannotPullContainerError`.\n- **Confirm both roles exist** and trust `ecs-tasks.amazonaws.com`.\n- **Confirm target group is `target_type=ip`** — `instance` silently fails.\n- **Confirm subnets are private and span >= 2 AZs.**\n- **Pre-create CloudWatch log group with retention.**\n- **For existing services, capture current config for rollback.**\n\nFull CLI sequences for all checks in `references\u002Fnetworking-and-scaling-guide.md`.\n\n## Output format — MANDATORY literal labels\n\nWhen invoked with a service deployment request, your ENTIRE response MUST\nbe the checklist block below. The labels are **case-sensitive all-caps\nkeywords**. Do NOT write a preamble. Start with `SERVICE:` and stop after\nthe `VERIFICATION_COMMANDS:` block.\n\n```text\nSERVICE: \u003Cname>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓]      Cluster — \u003Ccluster> (Fargate capacity provider)\n  [✓]      Task definition — \u003Cfamily>:\u003Crev> (\u003Ccpu> vCPU \u002F \u003Cmemory> MB)\n  [✓]      Container — \u003Cimage-uri>\n  [✓]      Container health check — \u003Cpath> (\u003Cinterval>, \u003Ctimeout>, \u003Cretries>)\n  [✓]      Networking — awsvpc, subnets \u003Csubnets>, sg-\u003Cname>\n  [✓]      Load balancer — ALB \u003Ctg-name>:\u003Cport> (target type ip)\n  [✓]      Desired count — \u003Cn> (across \u003Caz-count> AZs)\n  [✓]      Deployment circuit breaker — enabled with rollback\n  [✓]      Minimum healthy percent — 100% \u002F Maximum percent — 200%\n  [✓]      Execution role — \u003Cexec-role> (ECR + Secrets Manager + logs)\n  [✓]      Task role — \u003Ctask-role> (\u003Cservice-specific permissions>)\n  [✓]      Secrets — \u003Csecret-names> from secretsmanager \u002F ssm\n  [✓]      Logging — FireLens \u002F awslogs → CloudWatch \u002Fecs\u002F\u003Cname>, retention \u003Cdays>\n  [OPTIONAL] Auto-scaling — target tracking \u003Cmetric> \u003Ctarget>, min \u003Cx> \u002F max \u003Cy>\nVERIFICATION_COMMANDS:\n  aws ecs describe-services --cluster \u003Ccluster> --services \u003Cname>\n  aws ecs describe-task-definition --task-definition \u003Cfamily>:\u003Crev>\n  aws ec2 describe-security-groups --group-ids \u003Csg>\n  aws elbv2 describe-target-health --target-group-arn \u003Ctg-arn>\n  aws logs describe-log-groups --log-group-name-prefix \u002Fecs\u002F\u003Cname>\n```\n\n**Status marker semantics:**\n- `[✓]` — applied and verified.\n- `[✗]` — NOT applied or misconfigured. Cite the gap.\n- `[OPTIONAL]` — recommended but not required.\n- `[INPUT NEEDED]` — prerequisite value missing; operator must provide.\n\n**PREREQUISITES_MISSING verdict:** if any REQUIRED prerequisite is missing\n(cluster, task definition, subnets, execution role, target group ARN for\nALB-fronted service), the verdict is `PREREQUISITES_MISSING`.\n\n## References (load on demand)\n\n- [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md) — full copy-pasteable CLI for all 10 deployment steps, plus the capacity-provider-strategy variant and auto-scaling CLI moved from SKILL.md.\n- [references\u002Fnetworking-and-scaling-guide.md](references\u002Fnetworking-and-scaling-guide.md) — awsvpc networking, ALB integration, auto-scaling, Spot strategy, full NEVER list, plus the expert heuristic and edge-case quick list moved from SKILL.md.\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 10 verification commands moved from SKILL.md.\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — latest ECS Fargate features (2024-2026) moved from SKILL.md.\n\n## Domain\n\nAWS CloudOps \u002F ECS Fargate Container Compute Provisioning.\n\n## Edge-case handling\n\nEdge-case quick list moved verbatim to [references\u002Fnetworking-and-scaling-guide.md](references\u002Fnetworking-and-scaling-guide.md).\nLoad on demand for cross-account ECR, ECS Exec, health-check divergence, slow-start JVM, Spot drain, capacity-provider lock-in, Service Connect\u002FCloud Map.\n\n## AWS documentation\n\n- **Amazon ECS Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002FWelcome.html\n- **ECS Fargate** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002FAWS_Fargate.html\n- **ECS Task Definition** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Ftask_definitions.html\n- **ECS Service** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Fecs_services.html\n- **Fargate CPU\u002FMemory** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Ftask_definition_parameters.html#task_size\n- **ECS Capacity Providers** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Fcluster-capacity-providers.html\n- **ECS Deployment Circuit Breaker** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Fdeployment-circuit-breaker.html\n- **ECS Logging with FireLens** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonECS\u002Flatest\u002Fdeveloperguide\u002Fusing_firelens.html\n- **ECS CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fecs\u002F\n\n## References\n\n- `references\u002Fdeployment-cli-commands.md` — full copy-pasteable CLI command\n  sequence for all 10 deployment steps, including execution role + task role\n  creation, task definition registration, service creation, ALB target group\n  + listener rule, auto-scaling, and Terraform equivalents.\n\n- `references\u002Fnetworking-and-scaling-guide.md` — deep reference on awsvpc\n  networking (ENI lifecycle, NAT Gateway vs VPC endpoints), ALB integration,\n  target-tracking auto-scaling, Fargate Spot strategy, full NEVER list,\n  edge-case handling, expert heuristics, and pre-flight safety CLI.\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":41},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"dependencies":37,"requires_llm":38,"verdict_shape":39,"lifecycle_status":40,"supports_pipeline":38},"aws, ecs, fargate, cloudops, deploy, containers, task-definition, awsvpc, alb, auto-scaling","1","Jacky Chan — AWS Community Builder","aws-cloudops","Compute","0.1.0","aws, ecs, fargate, cloudops, deploy, provisioning, containers, task-definition, awsvpc, alb, target-group, auto-scaling, circuit-breaker, firelens, fargate-spot","deploy","high","false","capability","Invoke when the user wants to create a new ECS Fargate service, deploy a container workload to Fargate, validate an existing ECS service configuration against best practices, generate deployment CLI commands or IaC templates, or troubleshoot a Fargate deployment failure caused by missing prerequisites (task definition, subnets, ALB, execution role, secrets). Do NOT invoke for ECS on EC2 deployments (use an EC2-launch-type-specific skill) or for EKS deployments (use an EKS skill).","aws-orchestrator","true","READY_TO_DEPLOY | PREREQUISITES_MISSING","active","Requires an LLM agent runtime (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with ecs, ec2, iam, elasticloadbalancingv2, servicediscovery, logs, secretsmanager, and ssm access. Works with Terraform aws_ecs_service \u002F aws_ecs_task_definition resources, CloudFormation AWS::ECS::* resources, and AWS Copilot.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fecs-fargate-deployer",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill ecs-fargate-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill ecs-fargate-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill ecs-fargate-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",7150,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Ffargate-no-nat-gateway.md",730,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fevals\u002Fbaselines\u002Ffargate-no-nat-gateway.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Ffargate-spot-blended.md",890,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fevals\u002Fbaselines\u002Ffargate-spot-blended.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Fml-inference-arm64.md",1087,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fevals\u002Fbaselines\u002Fml-inference-arm64.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fpublic-api-alb-autoscale.md",1368,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fevals\u002Fbaselines\u002Fpublic-api-alb-autoscale.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Fwrong-target-type-instance.md",934,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fevals\u002Fbaselines\u002Fwrong-target-type-instance.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1654,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",14037,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Ffargate-no-nat-gateway.md",579,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fevals\u002Fprompts\u002Ffargate-no-nat-gateway.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Ffargate-spot-blended.md",820,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fevals\u002Fprompts\u002Ffargate-spot-blended.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fml-inference-arm64.md",883,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fevals\u002Fprompts\u002Fml-inference-arm64.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fpublic-api-alb-autoscale.md",1008,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fevals\u002Fprompts\u002Fpublic-api-alb-autoscale.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Fwrong-target-type-instance.md",538,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fevals\u002Fprompts\u002Fwrong-target-type-instance.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"example\u002FREADME.md",11453,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fexample\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",1387,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fdeployment-cli-commands.md",11113,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Freferences\u002Fdeployment-cli-commands.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fdiagnostic-commands.md",619,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Freferences\u002Fdiagnostic-commands.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fnetworking-and-scaling-guide.md",16500,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Freferences\u002Fnetworking-and-scaling-guide.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"skill.usf.yaml",4546,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fecs-fargate-deployer\u002Fskill.usf.yaml",[143,150,157,164,171,178],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]