aws-containers

Deploys and operates containerized workloads on Amazon ECS, Fargate, and ECR.

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/sakicodes/BuildFestHackathon26 --skill aws-containers-sakicodes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-containers
Source: https://github.com/sakicodes/BuildFestHackathon26/tree/main/.agents/skills/aws-containers
Command: npx skills add https://github.com/sakicodes/BuildFestHackathon26 --skill aws-containers-sakicodes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Deploying containers on AWS involves many failure-prone details: invalid Fargate CPU/memory combinations, wrong networking modes, confused IAM roles, slow deployments from default deregistration delays, and silent log loss. This Skill encodes the correct configurations, gotchas, and troubleshooting steps so container deployments on ECS, Fargate, and ECR succeed on the first attempt. ## Core Features & Use Cases - Task and Service Authoring: Create valid Fargate task definitions with correct CPU/memory pairs, awsvpc networking, secrets injection, and separated execution/task IAM roles. - Deployment and Scaling: Configure ALB integration, health check grace periods, deployment circuit breakers, blue/green deployments, and SQS-based worker scaling. - Debugging and Operations: Use ECS Exec for interactive container debugging, resolve CannotPullContainerError, OOM exit code 137, 502 Bad Gateway, and TargetNotConnectedException. - ECR Management: Set up repositories, lifecycle policies, image scanning, and cross-account image pulls. - Use Case: A developer says "deploy my container app behind a load balancer." The Skill produces a CDK ApplicationLoadBalancedFargateService with circuit breaker rollback, 30s deregistration delay, and auto-scaling, avoiding the common misconfigurations that cause failed deployments. ## Quick Start Ask the assistant to deploy your container image as a Fargate service behind an ALB with auto-scaling and rollback protection.

Frequently Asked Questions about aws-containers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a container on AWS Fargate?

Create a task definition with awsvpc networking and a valid CPU/memory pair, then create an ECS service with a load balancer. In CDK, ApplicationLoadBalancedFargateService provisions the cluster, ALB, target group, and security groups in one construct.

What is the difference between ECS execution role and task role?

The execution role is used by the ECS agent to pull ECR images, fetch secrets, and write logs. The task role is assumed by your application code to call AWS APIs. ECS Exec permissions go on the task role; ECR pull permissions go on the execution role.

Why does my Fargate task fail with CannotPullContainerError?

The task cannot reach ECR, usually because private subnets lack a NAT gateway or the required VPC endpoints: ecr.api, ecr.dkr, the S3 gateway endpoint, and logs. Also verify the execution role has ecr:GetAuthorizationToken, BatchGetImage, and GetDownloadUrlForLayer.

How do I fix ECS Exec TargetNotConnectedException?

Verify enableExecuteCommand is true on the service and force a new deployment, since existing tasks do not support ECS Exec. Check the task role has the four ssmmessages permissions, the ssmmessages VPC endpoint exists in private subnets, and platform version is 1.4.0 or later.

Should I use ECS Express Mode or standard ECS Fargate?

Use ECS Express Mode for simple HTTP apps and APIs when you want a single API call to provision the full stack; it replaces App Runner for new customers. Use standard ECS Fargate for production workloads needing VPC control, custom ALBs, and fine-grained IAM.

When should I not use this AWS containers skill?

Do not use it for Kubernetes or EKS workloads, CI/CD pipeline setup, VPC subnet design, or serverless compute like Lambda and Step Functions. Those scenarios are covered by dedicated skills for each domain.