Creator · giuseppe-trisciuoglio
Last updated · Sep 5, 2026
Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stac
Creator · giuseppe-trisciuoglio
Last updated · Sep 5, 2026
Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stac
Creator · giuseppe-trisciuoglio
Last updated · Sep 5, 2026
Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stac
Creator · giuseppe-trisciuoglio
Last updated · Sep 5, 2026
Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stac
Sandbox only
Install targets
Codex install prompt
Install the "aws-cloudformation-ecs" agent skill from https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-ecs. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stack references. Use when creating ECS clusters with CloudFormation, configuring Fargate and EC2 launch types, implementing blue/green deployments, managing auto scaling, integrating with ALB and NLB, and implementing ECS best practices. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"giuseppe-trisciuoglio-aws-cloudformation-ecs","task":"Install aws-cloudformation-ecs","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Maintenance
fresh
18d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
339
72/100 Quality · 75/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
339 GitHub stars
Repo activity
339 stars, 39 forks
Maintenance
18d since push
License
MIT
Install
npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecsDo not use when
Alternative
168.6K Stars
npx skills add mattpocock/skills --skill code-review
Alternative
40.8K Stars
npx skills add appsmithorg/appsmith
Alternative
175.7K Stars
npx skills add mattpocock/skills --skill implement
Alternative
30.9K Stars
npx skills add vercel-labs/agent-skills --skill vercel-react-best-practices
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20aws-cloudformation-ecs%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20aws-cloudformation-ecs%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install
Agent should check
Copy prompt
Task: Use aws-cloudformation-ecs in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20aws-cloudformation-ecs%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install
Install command: npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install
LLM text format
/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install?format=text
Find alternatives
/api/skills/search?q=aws-cloudformation-ecs&limit=3
Agent prompt
Use aws-cloudformation-ecs for this task. Review https://www.openagentskill.com/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install, then install with: npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/giuseppe-trisciuoglio-aws-cloudformation-ecs
LLM text
/api/registry/manifest/giuseppe-trisciuoglio-aws-cloudformation-ecs?format=text
Install alias
/api/registry/install/giuseppe-trisciuoglio-aws-cloudformation-ecs
Recommend
/api/registry/recommend?task=Use%20aws-cloudformation-ecs%20in%20an%20agent%20workflow&limit=3
Agent fit
Coding agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
Coding agents
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO339 GitHub stars
Stars/forks activity
CHECK339 stars, 39 forks; issue activity unavailable in current metadata
Recent maintenance
PASS18d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Alternative shortlist
Similar skills that may fit this task.
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
--- name: aws-cloudformation-ecs description: Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stack references. Use when creating ECS clusters with CloudFormation, configuring Fargate and EC2 launch types, implementing blue/green deployments, managing auto scaling, integrating with ALB and NLB, and implementing ECS best practices. allowed-tools: Read, Write, Bash ---
# AWS CloudFormation ECS
## Overview
Provides CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, ALB integration, monitoring, and cross-stack references.
## When to Use
- Creating or updating ECS clusters with CloudFormation - Configuring Fargate/EC2 launch types and capacity providers - Deploying services with ALB/NLB integration or blue/green deployments - Implementing auto scaling for ECS services - Setting up monitoring with Container Insights
## Instructions
Follow these steps to create ECS infrastructure with CloudFormation:
### 1. Define ECS Cluster Parameters
Specify launch type, networking, and capacity settings:
```yaml Parameters: LaunchType: Type: String Default: FARGATE AllowedValues: - EC2 - FARGATE Description: ECS launch type
ContainerPort: Type: Number Default: 80 Description: Container port
TaskCPU: Type: String Default: 256 AllowedValues: - 256 - 512 - 1024 - 2048 - 4096 Description: Task CPU units
TaskMemory: Type: String Default: 512 AllowedValues: - 512 - 1024 - 2048 - 3072 - 4096 - 5120 - 6144 - 7168 - 8192 - 9216 - 10240 Description: Task memory in MB ```
### 2. Create ECS Cluster
Define the cluster infrastructure:
```yaml Resources: ECSCluster: Type: AWS::ECS::Cluster Properties: ClusterName: !Sub "${AWS::StackName}-cluster" ClusterSettings: - Name: containerInsights Value: enabled CapacityProviders: - FARGATE - FARGATE_SPOT DefaultCapacityProviderStrategy: - CapacityProvider: FARGATE Weight: 1 - CapacityProvider: FARGATE_SPOT Weight: 0 ```
### 3. Create Task Definition
Define container configurations:
```yaml Resources: TaskDefinition: Type: AWS::ECS::TaskDefinition Properties: Family: !Sub "${AWS::StackName}-task" NetworkMode: awsvpc RequiresCompatibilities: - FARGATE Cpu: !Ref TaskCPU Memory: !Ref TaskMemory ExecutionRoleArn: !Ref ExecutionRole TaskRoleArn: !Ref TaskRole ContainerDefinitions: - Name: application Image: !Ref ImageUrl PortMappings: - ContainerPort: !Ref ContainerPort Protocol: tcp Environment: - Name: LOG_LEVEL Value: INFO LogConfiguration: LogDriver: awslogs Options: awslogs-group: !Ref LogGroup awslogs-region: !Ref AWS::Region awslogs-stream-prefix: ecs Memory: !Ref TaskMemory ```
**Validate task definition syntax before proceeding:** ```bash aws cloudformation validate-template --template-body file://template.yaml ```
### 4. Configure Execution Roles
Set up IAM roles for task execution:
```yaml Resources: ExecutionRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Principal: Service: ecs-tasks.amazonaws.com Action: sts:AssumeRole ManagedPolicyArns: - arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy
TaskRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Principal: Service: ecs-tasks.amazonaws.com Action: sts:AssumeRole Policies: - PolicyName: S3Access PolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Action: - s3:GetObject Resource: !Sub "${DataBucket.Arn}/*" ```
### 5. Create ECS Service
Define the service configuration:
```yaml Resources: ECSService: Type: AWS::ECS::Service Properties: ServiceName: !Sub "${AWS::StackName}-service" Cluster: !Ref ECSCluster TaskDefinition: !Ref TaskDefinition DesiredCount: 2 LaunchType: FARGATE NetworkConfiguration: AwsvpcConfiguration: Subnets: - !Ref PrivateSubnet1 - !Ref PrivateSubnet2 SecurityGroups: - !Ref SecurityGroup AssignPublicIp: DISABLED LoadBalancers: - TargetGroupArn: !Ref TargetGroup ContainerName: application ContainerPort: !Ref ContainerPort ```
### 6. Configure Load Balancer
Set up ALB for traffic distribution:
```yaml Resources: LoadBalancer: Type: AWS::ElasticLoadBalancingV2::LoadBalancer Properties: Name: !Sub "${AWS::StackName}-alb" Scheme: internet-facing Type: application Subnets: - !Ref PublicSubnet1 - !Ref PublicSubnet2 SecurityGroups: - !Ref ALBSecurityGroup
TargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: Port: 80 Protocol: HTTP VpcId: !Ref VPC TargetType: ip
Listener: Type: AWS::ElasticLoadBalancingV2::Listener Properties: DefaultActions: - TargetGroupArn: !Ref TargetGroup Type: forward LoadBalancerArn: !Ref LoadBalancer Port: 80 Protocol: HTTP ```
### 7. Implement Auto Scaling
Configure Application Auto Scaling:
```yaml Resources: ScalableTarget: Type: AWS::ApplicationAutoScaling::ScalableTarget Properties: MaxCapacity: 10 MinCapacity: 1 ResourceId: !Sub "service/${ECSCluster}/${ECSService}" ScalableDimension: ecs:service:DesiredCount ServiceNamespace: ecs
ScalingPolicy: Type: AWS::ApplicationAutoScaling::ScalingPolicy Properties: PolicyName: !Sub "${AWS::StackName}-scaling" PolicyType: TargetTrackingScaling ScalingTargetId: !Ref ScalableTarget TargetTrackingScalingPolicyConfiguration: TargetValue: 70.0 PredefinedMetricSpecification: PredefinedMetricType: ECSServiceAverageCPUUtilization ```
### 8. Configure Monitoring
Enable CloudWatch Container Insights:
```yaml Resources: LogGroup: Type: AWS::Logs::LogGroup Properties: LogGroupName: !Sub "/ecs/${AWS::StackName}" RetentionInDays: 7 ```
**Before deployment:** Create a change set to preview changes: ```bash aws cloudformation create-change-set \ --stack-name my-ecs-stack \ --template-body file://template.yaml \ --change-set-type CREATE aws cloudformation execute-change-set --change-set-name <arn> ```
## Best Practices
### Task Definition - Use `Family` naming for version tracking and immutable deployments - Keep task definition under 1 KB (CloudFormation limit) by referencing external configs - Configure `HealthCheck` in container definitions for ECS health monitoring - Set both `Cpu` and `Memory` at task level for Fargate
### Service Deployment - Enable `DeploymentCircuitBreaker` for automatic rollback on failures - Use `HealthCheckGracePeriodSeconds` matching application startup time - Configure `MinimumHealthyPercent` (100) and `MaximumPercent` (200) for zero-downtime updates - Reference task definition by logical ID only—ECS automatically uses latest revision
### Networking - Always use `awsvpc` network mode for Fargate - Place tasks in private subnets with NAT gateway for outbound access - Configure security groups to allow only required ports (not 0.0.0.0/0)
### Scaling - Use Fargate Spot with base capacity of 1 on-demand for cost optimization - Set `MaxHealthyDuration` on capacity provider strategy for Spot interruption handling - Monitor `STEADY_STATE` failures in CloudWatch for task startup issues
## Constraints and Warnings
### Resource Limits - Task definition size limit: 1 KB when using CloudFormation (use ParameterStore/Secrets Manager for large configs) - Maximum 10 containers per task definition in Fargate - CPU must be specified for Fargate tasks (256-4096 units, in 1024 increments) - Memory must be allocated (512-30720 MB depending on CPU)
### Operational Limits - ENI limits apply per subnet—plan for at least 1 ENI per task in each AZ - Fargate Spot tasks receive 2-minute interruption notice—implement graceful shutdown signals (SIGTERM) - Service updates require new task definition revision—cannot modify existing versions - `DesiredCount` updates during deployment may conflict with auto scaling policies
### CloudFormation-Specific - Cross-stack references required for VPC IDs, Subnet IDs, and Security Group IDs passed between stacks - Use `!GetAtt` for referencing stack outputs in same template - Ensure IAM role ARNs use `Fn::Sub` with stack name for portability
## Examples
### Minimal Fargate Service ```yaml AWSTemplateFormatVersion: "2010-09-09" Description: Minimal ECS Fargate service
Resources: Cluster: Type: AWS::ECS::Cluster Properties: ClusterName: !Sub "${AWS::StackName}-cluster"
TaskDefinition: Type: AWS::ECS::TaskDefinition Properties: Family: !Sub "${AWS::StackName}-task" NetworkMode: awsvpc RequiresCompatibilities: [FARGATE] Cpu: 256 Memory: 512 ContainerDefinitions: - Name: app Image: nginx:latest PortMappings: - ContainerPort: 80
Service: Type: AWS::ECS::Service Properties: Cluster: !Ref Cluster ServiceName: !Sub "${AWS::StackName}-svc" TaskDefinition: !Ref TaskDefinition DesiredCount: 2 LaunchType: FARGATE DeploymentCircuitBreaker: Enable: true Rollback: true ```
### ECS with ALB Integration ```yaml Resources: Service: Type: AWS::ECS::Service Properties: Cluster: !Ref ECSCluster TaskDefinition: !Ref TaskDefinition DesiredCount: 2 LaunchType: FARGATE HealthCheckGracePeriodSeconds: 30 NetworkConfiguration: AwsvpcConfiguration: Subnets: [!Ref PrivateSubnet1, !Ref PrivateSubnet2] SecurityGroups: [!Ref TaskSecurityGroup] LoadBalancers: - TargetGroupArn: !Ref TargetGroup ContainerName: app ContainerPort: 8080
TargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: Port: 80 Protocol: HTTP VpcId: !Ref VPC TargetType: ip HealthCheckPath: /health ```
## References
For detailed implementation guidance, see:
- **[constraints.md](references/constraints.md)** - Resource limits (task definition size, container limits, memory limits, CPU limits), operational constraints (service updates, ENI limits, task start time, scaling delays), security constraints (IAM roles, network mode, security groups, secrets rotation), cost considerations (Fargate pricing, data transfer, ECR storage, monitoring), deployment constraints (blue/green requirements, CodeDeploy integration, rollbacks, task drift), and availability constraints (Fargate Spot, multi-AZ, health checks, service discovery)
## Related Resources
- [AWS ECS Documentation](https://docs.aws.amazon.com/ecs/) - [ECS Task Definitions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html) - [ECS Services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html) -
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for aws-cloudformation-ecs, ready for a manual X post.
aws-cloudformation-ecs: Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container... 339 stars https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=x
Listing + install path for aws-cloudformation-ecs: https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=x Install: npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to giuseppe-trisciuoglio but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/audit)
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)giuseppe-trisciuoglio
@giuseppe-trisciuoglio
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Code Review
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
168.6K StarsAppsmith
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
40.8K StarsImplement
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
175.7K StarsVercel React Best Practices
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
30.9K StarsSandbox only
Install targets
Codex install prompt
Install the "aws-cloudformation-ecs" agent skill from https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-ecs. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stack references. Use when creating ECS clusters with CloudFormation, configuring Fargate and EC2 launch types, implementing blue/green deployments, managing auto scaling, integrating with ALB and NLB, and implementing ECS best practices. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"giuseppe-trisciuoglio-aws-cloudformation-ecs","task":"Install aws-cloudformation-ecs","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Maintenance
fresh
18d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
339
72/100 Quality · 75/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
339 GitHub stars
Repo activity
339 stars, 39 forks
Maintenance
18d since push
License
MIT
Install
npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecsDo not use when
Alternative
168.6K Stars
npx skills add mattpocock/skills --skill code-review
Alternative
40.8K Stars
npx skills add appsmithorg/appsmith
Alternative
175.7K Stars
npx skills add mattpocock/skills --skill implement
Alternative
30.9K Stars
npx skills add vercel-labs/agent-skills --skill vercel-react-best-practices
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20aws-cloudformation-ecs%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20aws-cloudformation-ecs%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install
Agent should check
Copy prompt
Task: Use aws-cloudformation-ecs in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20aws-cloudformation-ecs%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install
Install command: npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install
LLM text format
/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install?format=text
Find alternatives
/api/skills/search?q=aws-cloudformation-ecs&limit=3
Agent prompt
Use aws-cloudformation-ecs for this task. Review https://www.openagentskill.com/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install, then install with: npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/giuseppe-trisciuoglio-aws-cloudformation-ecs
LLM text
/api/registry/manifest/giuseppe-trisciuoglio-aws-cloudformation-ecs?format=text
Install alias
/api/registry/install/giuseppe-trisciuoglio-aws-cloudformation-ecs
Recommend
/api/registry/recommend?task=Use%20aws-cloudformation-ecs%20in%20an%20agent%20workflow&limit=3
Agent fit
Coding agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
Coding agents
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO339 GitHub stars
Stars/forks activity
CHECK339 stars, 39 forks; issue activity unavailable in current metadata
Recent maintenance
PASS18d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Alternative shortlist
Similar skills that may fit this task.
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
--- name: aws-cloudformation-ecs description: Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stack references. Use when creating ECS clusters with CloudFormation, configuring Fargate and EC2 launch types, implementing blue/green deployments, managing auto scaling, integrating with ALB and NLB, and implementing ECS best practices. allowed-tools: Read, Write, Bash ---
# AWS CloudFormation ECS
## Overview
Provides CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, ALB integration, monitoring, and cross-stack references.
## When to Use
- Creating or updating ECS clusters with CloudFormation - Configuring Fargate/EC2 launch types and capacity providers - Deploying services with ALB/NLB integration or blue/green deployments - Implementing auto scaling for ECS services - Setting up monitoring with Container Insights
## Instructions
Follow these steps to create ECS infrastructure with CloudFormation:
### 1. Define ECS Cluster Parameters
Specify launch type, networking, and capacity settings:
```yaml Parameters: LaunchType: Type: String Default: FARGATE AllowedValues: - EC2 - FARGATE Description: ECS launch type
ContainerPort: Type: Number Default: 80 Description: Container port
TaskCPU: Type: String Default: 256 AllowedValues: - 256 - 512 - 1024 - 2048 - 4096 Description: Task CPU units
TaskMemory: Type: String Default: 512 AllowedValues: - 512 - 1024 - 2048 - 3072 - 4096 - 5120 - 6144 - 7168 - 8192 - 9216 - 10240 Description: Task memory in MB ```
### 2. Create ECS Cluster
Define the cluster infrastructure:
```yaml Resources: ECSCluster: Type: AWS::ECS::Cluster Properties: ClusterName: !Sub "${AWS::StackName}-cluster" ClusterSettings: - Name: containerInsights Value: enabled CapacityProviders: - FARGATE - FARGATE_SPOT DefaultCapacityProviderStrategy: - CapacityProvider: FARGATE Weight: 1 - CapacityProvider: FARGATE_SPOT Weight: 0 ```
### 3. Create Task Definition
Define container configurations:
```yaml Resources: TaskDefinition: Type: AWS::ECS::TaskDefinition Properties: Family: !Sub "${AWS::StackName}-task" NetworkMode: awsvpc RequiresCompatibilities: - FARGATE Cpu: !Ref TaskCPU Memory: !Ref TaskMemory ExecutionRoleArn: !Ref ExecutionRole TaskRoleArn: !Ref TaskRole ContainerDefinitions: - Name: application Image: !Ref ImageUrl PortMappings: - ContainerPort: !Ref ContainerPort Protocol: tcp Environment: - Name: LOG_LEVEL Value: INFO LogConfiguration: LogDriver: awslogs Options: awslogs-group: !Ref LogGroup awslogs-region: !Ref AWS::Region awslogs-stream-prefix: ecs Memory: !Ref TaskMemory ```
**Validate task definition syntax before proceeding:** ```bash aws cloudformation validate-template --template-body file://template.yaml ```
### 4. Configure Execution Roles
Set up IAM roles for task execution:
```yaml Resources: ExecutionRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Principal: Service: ecs-tasks.amazonaws.com Action: sts:AssumeRole ManagedPolicyArns: - arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy
TaskRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Principal: Service: ecs-tasks.amazonaws.com Action: sts:AssumeRole Policies: - PolicyName: S3Access PolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Action: - s3:GetObject Resource: !Sub "${DataBucket.Arn}/*" ```
### 5. Create ECS Service
Define the service configuration:
```yaml Resources: ECSService: Type: AWS::ECS::Service Properties: ServiceName: !Sub "${AWS::StackName}-service" Cluster: !Ref ECSCluster TaskDefinition: !Ref TaskDefinition DesiredCount: 2 LaunchType: FARGATE NetworkConfiguration: AwsvpcConfiguration: Subnets: - !Ref PrivateSubnet1 - !Ref PrivateSubnet2 SecurityGroups: - !Ref SecurityGroup AssignPublicIp: DISABLED LoadBalancers: - TargetGroupArn: !Ref TargetGroup ContainerName: application ContainerPort: !Ref ContainerPort ```
### 6. Configure Load Balancer
Set up ALB for traffic distribution:
```yaml Resources: LoadBalancer: Type: AWS::ElasticLoadBalancingV2::LoadBalancer Properties: Name: !Sub "${AWS::StackName}-alb" Scheme: internet-facing Type: application Subnets: - !Ref PublicSubnet1 - !Ref PublicSubnet2 SecurityGroups: - !Ref ALBSecurityGroup
TargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: Port: 80 Protocol: HTTP VpcId: !Ref VPC TargetType: ip
Listener: Type: AWS::ElasticLoadBalancingV2::Listener Properties: DefaultActions: - TargetGroupArn: !Ref TargetGroup Type: forward LoadBalancerArn: !Ref LoadBalancer Port: 80 Protocol: HTTP ```
### 7. Implement Auto Scaling
Configure Application Auto Scaling:
```yaml Resources: ScalableTarget: Type: AWS::ApplicationAutoScaling::ScalableTarget Properties: MaxCapacity: 10 MinCapacity: 1 ResourceId: !Sub "service/${ECSCluster}/${ECSService}" ScalableDimension: ecs:service:DesiredCount ServiceNamespace: ecs
ScalingPolicy: Type: AWS::ApplicationAutoScaling::ScalingPolicy Properties: PolicyName: !Sub "${AWS::StackName}-scaling" PolicyType: TargetTrackingScaling ScalingTargetId: !Ref ScalableTarget TargetTrackingScalingPolicyConfiguration: TargetValue: 70.0 PredefinedMetricSpecification: PredefinedMetricType: ECSServiceAverageCPUUtilization ```
### 8. Configure Monitoring
Enable CloudWatch Container Insights:
```yaml Resources: LogGroup: Type: AWS::Logs::LogGroup Properties: LogGroupName: !Sub "/ecs/${AWS::StackName}" RetentionInDays: 7 ```
**Before deployment:** Create a change set to preview changes: ```bash aws cloudformation create-change-set \ --stack-name my-ecs-stack \ --template-body file://template.yaml \ --change-set-type CREATE aws cloudformation execute-change-set --change-set-name <arn> ```
## Best Practices
### Task Definition - Use `Family` naming for version tracking and immutable deployments - Keep task definition under 1 KB (CloudFormation limit) by referencing external configs - Configure `HealthCheck` in container definitions for ECS health monitoring - Set both `Cpu` and `Memory` at task level for Fargate
### Service Deployment - Enable `DeploymentCircuitBreaker` for automatic rollback on failures - Use `HealthCheckGracePeriodSeconds` matching application startup time - Configure `MinimumHealthyPercent` (100) and `MaximumPercent` (200) for zero-downtime updates - Reference task definition by logical ID only—ECS automatically uses latest revision
### Networking - Always use `awsvpc` network mode for Fargate - Place tasks in private subnets with NAT gateway for outbound access - Configure security groups to allow only required ports (not 0.0.0.0/0)
### Scaling - Use Fargate Spot with base capacity of 1 on-demand for cost optimization - Set `MaxHealthyDuration` on capacity provider strategy for Spot interruption handling - Monitor `STEADY_STATE` failures in CloudWatch for task startup issues
## Constraints and Warnings
### Resource Limits - Task definition size limit: 1 KB when using CloudFormation (use ParameterStore/Secrets Manager for large configs) - Maximum 10 containers per task definition in Fargate - CPU must be specified for Fargate tasks (256-4096 units, in 1024 increments) - Memory must be allocated (512-30720 MB depending on CPU)
### Operational Limits - ENI limits apply per subnet—plan for at least 1 ENI per task in each AZ - Fargate Spot tasks receive 2-minute interruption notice—implement graceful shutdown signals (SIGTERM) - Service updates require new task definition revision—cannot modify existing versions - `DesiredCount` updates during deployment may conflict with auto scaling policies
### CloudFormation-Specific - Cross-stack references required for VPC IDs, Subnet IDs, and Security Group IDs passed between stacks - Use `!GetAtt` for referencing stack outputs in same template - Ensure IAM role ARNs use `Fn::Sub` with stack name for portability
## Examples
### Minimal Fargate Service ```yaml AWSTemplateFormatVersion: "2010-09-09" Description: Minimal ECS Fargate service
Resources: Cluster: Type: AWS::ECS::Cluster Properties: ClusterName: !Sub "${AWS::StackName}-cluster"
TaskDefinition: Type: AWS::ECS::TaskDefinition Properties: Family: !Sub "${AWS::StackName}-task" NetworkMode: awsvpc RequiresCompatibilities: [FARGATE] Cpu: 256 Memory: 512 ContainerDefinitions: - Name: app Image: nginx:latest PortMappings: - ContainerPort: 80
Service: Type: AWS::ECS::Service Properties: Cluster: !Ref Cluster ServiceName: !Sub "${AWS::StackName}-svc" TaskDefinition: !Ref TaskDefinition DesiredCount: 2 LaunchType: FARGATE DeploymentCircuitBreaker: Enable: true Rollback: true ```
### ECS with ALB Integration ```yaml Resources: Service: Type: AWS::ECS::Service Properties: Cluster: !Ref ECSCluster TaskDefinition: !Ref TaskDefinition DesiredCount: 2 LaunchType: FARGATE HealthCheckGracePeriodSeconds: 30 NetworkConfiguration: AwsvpcConfiguration: Subnets: [!Ref PrivateSubnet1, !Ref PrivateSubnet2] SecurityGroups: [!Ref TaskSecurityGroup] LoadBalancers: - TargetGroupArn: !Ref TargetGroup ContainerName: app ContainerPort: 8080
TargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: Port: 80 Protocol: HTTP VpcId: !Ref VPC TargetType: ip HealthCheckPath: /health ```
## References
For detailed implementation guidance, see:
- **[constraints.md](references/constraints.md)** - Resource limits (task definition size, container limits, memory limits, CPU limits), operational constraints (service updates, ENI limits, task start time, scaling delays), security constraints (IAM roles, network mode, security groups, secrets rotation), cost considerations (Fargate pricing, data transfer, ECR storage, monitoring), deployment constraints (blue/green requirements, CodeDeploy integration, rollbacks, task drift), and availability constraints (Fargate Spot, multi-AZ, health checks, service discovery)
## Related Resources
- [AWS ECS Documentation](https://docs.aws.amazon.com/ecs/) - [ECS Task Definitions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html) - [ECS Services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html) -
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for aws-cloudformation-ecs, ready for a manual X post.
aws-cloudformation-ecs: Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container... 339 stars https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=x
Listing + install path for aws-cloudformation-ecs: https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=x Install: npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to giuseppe-trisciuoglio but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/audit)
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)giuseppe-trisciuoglio
@giuseppe-trisciuoglio
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Code Review
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
168.6K StarsAppsmith
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
40.8K StarsImplement
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
175.7K StarsVercel React Best Practices
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
30.9K StarsSandbox only
Install targets
Codex install prompt
Install the "aws-cloudformation-ecs" agent skill from https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-ecs. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stack references. Use when creating ECS clusters with CloudFormation, configuring Fargate and EC2 launch types, implementing blue/green deployments, managing auto scaling, integrating with ALB and NLB, and implementing ECS best practices. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"giuseppe-trisciuoglio-aws-cloudformation-ecs","task":"Install aws-cloudformation-ecs","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Maintenance
fresh
18d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
339
72/100 Quality · 75/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
339 GitHub stars
Repo activity
339 stars, 39 forks
Maintenance
18d since push
License
MIT
Install
npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecsDo not use when
Alternative
168.6K Stars
npx skills add mattpocock/skills --skill code-review
Alternative
40.8K Stars
npx skills add appsmithorg/appsmith
Alternative
175.7K Stars
npx skills add mattpocock/skills --skill implement
Alternative
30.9K Stars
npx skills add vercel-labs/agent-skills --skill vercel-react-best-practices
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20aws-cloudformation-ecs%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20aws-cloudformation-ecs%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install
Agent should check
Copy prompt
Task: Use aws-cloudformation-ecs in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20aws-cloudformation-ecs%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install
Install command: npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install
LLM text format
/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install?format=text
Find alternatives
/api/skills/search?q=aws-cloudformation-ecs&limit=3
Agent prompt
Use aws-cloudformation-ecs for this task. Review https://www.openagentskill.com/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install, then install with: npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/giuseppe-trisciuoglio-aws-cloudformation-ecs
LLM text
/api/registry/manifest/giuseppe-trisciuoglio-aws-cloudformation-ecs?format=text
Install alias
/api/registry/install/giuseppe-trisciuoglio-aws-cloudformation-ecs
Recommend
/api/registry/recommend?task=Use%20aws-cloudformation-ecs%20in%20an%20agent%20workflow&limit=3
Agent fit
Coding agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
Coding agents
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO339 GitHub stars
Stars/forks activity
CHECK339 stars, 39 forks; issue activity unavailable in current metadata
Recent maintenance
PASS18d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Alternative shortlist
Similar skills that may fit this task.
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
--- name: aws-cloudformation-ecs description: Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stack references. Use when creating ECS clusters with CloudFormation, configuring Fargate and EC2 launch types, implementing blue/green deployments, managing auto scaling, integrating with ALB and NLB, and implementing ECS best practices. allowed-tools: Read, Write, Bash ---
# AWS CloudFormation ECS
## Overview
Provides CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, ALB integration, monitoring, and cross-stack references.
## When to Use
- Creating or updating ECS clusters with CloudFormation - Configuring Fargate/EC2 launch types and capacity providers - Deploying services with ALB/NLB integration or blue/green deployments - Implementing auto scaling for ECS services - Setting up monitoring with Container Insights
## Instructions
Follow these steps to create ECS infrastructure with CloudFormation:
### 1. Define ECS Cluster Parameters
Specify launch type, networking, and capacity settings:
```yaml Parameters: LaunchType: Type: String Default: FARGATE AllowedValues: - EC2 - FARGATE Description: ECS launch type
ContainerPort: Type: Number Default: 80 Description: Container port
TaskCPU: Type: String Default: 256 AllowedValues: - 256 - 512 - 1024 - 2048 - 4096 Description: Task CPU units
TaskMemory: Type: String Default: 512 AllowedValues: - 512 - 1024 - 2048 - 3072 - 4096 - 5120 - 6144 - 7168 - 8192 - 9216 - 10240 Description: Task memory in MB ```
### 2. Create ECS Cluster
Define the cluster infrastructure:
```yaml Resources: ECSCluster: Type: AWS::ECS::Cluster Properties: ClusterName: !Sub "${AWS::StackName}-cluster" ClusterSettings: - Name: containerInsights Value: enabled CapacityProviders: - FARGATE - FARGATE_SPOT DefaultCapacityProviderStrategy: - CapacityProvider: FARGATE Weight: 1 - CapacityProvider: FARGATE_SPOT Weight: 0 ```
### 3. Create Task Definition
Define container configurations:
```yaml Resources: TaskDefinition: Type: AWS::ECS::TaskDefinition Properties: Family: !Sub "${AWS::StackName}-task" NetworkMode: awsvpc RequiresCompatibilities: - FARGATE Cpu: !Ref TaskCPU Memory: !Ref TaskMemory ExecutionRoleArn: !Ref ExecutionRole TaskRoleArn: !Ref TaskRole ContainerDefinitions: - Name: application Image: !Ref ImageUrl PortMappings: - ContainerPort: !Ref ContainerPort Protocol: tcp Environment: - Name: LOG_LEVEL Value: INFO LogConfiguration: LogDriver: awslogs Options: awslogs-group: !Ref LogGroup awslogs-region: !Ref AWS::Region awslogs-stream-prefix: ecs Memory: !Ref TaskMemory ```
**Validate task definition syntax before proceeding:** ```bash aws cloudformation validate-template --template-body file://template.yaml ```
### 4. Configure Execution Roles
Set up IAM roles for task execution:
```yaml Resources: ExecutionRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Principal: Service: ecs-tasks.amazonaws.com Action: sts:AssumeRole ManagedPolicyArns: - arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy
TaskRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Principal: Service: ecs-tasks.amazonaws.com Action: sts:AssumeRole Policies: - PolicyName: S3Access PolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Action: - s3:GetObject Resource: !Sub "${DataBucket.Arn}/*" ```
### 5. Create ECS Service
Define the service configuration:
```yaml Resources: ECSService: Type: AWS::ECS::Service Properties: ServiceName: !Sub "${AWS::StackName}-service" Cluster: !Ref ECSCluster TaskDefinition: !Ref TaskDefinition DesiredCount: 2 LaunchType: FARGATE NetworkConfiguration: AwsvpcConfiguration: Subnets: - !Ref PrivateSubnet1 - !Ref PrivateSubnet2 SecurityGroups: - !Ref SecurityGroup AssignPublicIp: DISABLED LoadBalancers: - TargetGroupArn: !Ref TargetGroup ContainerName: application ContainerPort: !Ref ContainerPort ```
### 6. Configure Load Balancer
Set up ALB for traffic distribution:
```yaml Resources: LoadBalancer: Type: AWS::ElasticLoadBalancingV2::LoadBalancer Properties: Name: !Sub "${AWS::StackName}-alb" Scheme: internet-facing Type: application Subnets: - !Ref PublicSubnet1 - !Ref PublicSubnet2 SecurityGroups: - !Ref ALBSecurityGroup
TargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: Port: 80 Protocol: HTTP VpcId: !Ref VPC TargetType: ip
Listener: Type: AWS::ElasticLoadBalancingV2::Listener Properties: DefaultActions: - TargetGroupArn: !Ref TargetGroup Type: forward LoadBalancerArn: !Ref LoadBalancer Port: 80 Protocol: HTTP ```
### 7. Implement Auto Scaling
Configure Application Auto Scaling:
```yaml Resources: ScalableTarget: Type: AWS::ApplicationAutoScaling::ScalableTarget Properties: MaxCapacity: 10 MinCapacity: 1 ResourceId: !Sub "service/${ECSCluster}/${ECSService}" ScalableDimension: ecs:service:DesiredCount ServiceNamespace: ecs
ScalingPolicy: Type: AWS::ApplicationAutoScaling::ScalingPolicy Properties: PolicyName: !Sub "${AWS::StackName}-scaling" PolicyType: TargetTrackingScaling ScalingTargetId: !Ref ScalableTarget TargetTrackingScalingPolicyConfiguration: TargetValue: 70.0 PredefinedMetricSpecification: PredefinedMetricType: ECSServiceAverageCPUUtilization ```
### 8. Configure Monitoring
Enable CloudWatch Container Insights:
```yaml Resources: LogGroup: Type: AWS::Logs::LogGroup Properties: LogGroupName: !Sub "/ecs/${AWS::StackName}" RetentionInDays: 7 ```
**Before deployment:** Create a change set to preview changes: ```bash aws cloudformation create-change-set \ --stack-name my-ecs-stack \ --template-body file://template.yaml \ --change-set-type CREATE aws cloudformation execute-change-set --change-set-name <arn> ```
## Best Practices
### Task Definition - Use `Family` naming for version tracking and immutable deployments - Keep task definition under 1 KB (CloudFormation limit) by referencing external configs - Configure `HealthCheck` in container definitions for ECS health monitoring - Set both `Cpu` and `Memory` at task level for Fargate
### Service Deployment - Enable `DeploymentCircuitBreaker` for automatic rollback on failures - Use `HealthCheckGracePeriodSeconds` matching application startup time - Configure `MinimumHealthyPercent` (100) and `MaximumPercent` (200) for zero-downtime updates - Reference task definition by logical ID only—ECS automatically uses latest revision
### Networking - Always use `awsvpc` network mode for Fargate - Place tasks in private subnets with NAT gateway for outbound access - Configure security groups to allow only required ports (not 0.0.0.0/0)
### Scaling - Use Fargate Spot with base capacity of 1 on-demand for cost optimization - Set `MaxHealthyDuration` on capacity provider strategy for Spot interruption handling - Monitor `STEADY_STATE` failures in CloudWatch for task startup issues
## Constraints and Warnings
### Resource Limits - Task definition size limit: 1 KB when using CloudFormation (use ParameterStore/Secrets Manager for large configs) - Maximum 10 containers per task definition in Fargate - CPU must be specified for Fargate tasks (256-4096 units, in 1024 increments) - Memory must be allocated (512-30720 MB depending on CPU)
### Operational Limits - ENI limits apply per subnet—plan for at least 1 ENI per task in each AZ - Fargate Spot tasks receive 2-minute interruption notice—implement graceful shutdown signals (SIGTERM) - Service updates require new task definition revision—cannot modify existing versions - `DesiredCount` updates during deployment may conflict with auto scaling policies
### CloudFormation-Specific - Cross-stack references required for VPC IDs, Subnet IDs, and Security Group IDs passed between stacks - Use `!GetAtt` for referencing stack outputs in same template - Ensure IAM role ARNs use `Fn::Sub` with stack name for portability
## Examples
### Minimal Fargate Service ```yaml AWSTemplateFormatVersion: "2010-09-09" Description: Minimal ECS Fargate service
Resources: Cluster: Type: AWS::ECS::Cluster Properties: ClusterName: !Sub "${AWS::StackName}-cluster"
TaskDefinition: Type: AWS::ECS::TaskDefinition Properties: Family: !Sub "${AWS::StackName}-task" NetworkMode: awsvpc RequiresCompatibilities: [FARGATE] Cpu: 256 Memory: 512 ContainerDefinitions: - Name: app Image: nginx:latest PortMappings: - ContainerPort: 80
Service: Type: AWS::ECS::Service Properties: Cluster: !Ref Cluster ServiceName: !Sub "${AWS::StackName}-svc" TaskDefinition: !Ref TaskDefinition DesiredCount: 2 LaunchType: FARGATE DeploymentCircuitBreaker: Enable: true Rollback: true ```
### ECS with ALB Integration ```yaml Resources: Service: Type: AWS::ECS::Service Properties: Cluster: !Ref ECSCluster TaskDefinition: !Ref TaskDefinition DesiredCount: 2 LaunchType: FARGATE HealthCheckGracePeriodSeconds: 30 NetworkConfiguration: AwsvpcConfiguration: Subnets: [!Ref PrivateSubnet1, !Ref PrivateSubnet2] SecurityGroups: [!Ref TaskSecurityGroup] LoadBalancers: - TargetGroupArn: !Ref TargetGroup ContainerName: app ContainerPort: 8080
TargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: Port: 80 Protocol: HTTP VpcId: !Ref VPC TargetType: ip HealthCheckPath: /health ```
## References
For detailed implementation guidance, see:
- **[constraints.md](references/constraints.md)** - Resource limits (task definition size, container limits, memory limits, CPU limits), operational constraints (service updates, ENI limits, task start time, scaling delays), security constraints (IAM roles, network mode, security groups, secrets rotation), cost considerations (Fargate pricing, data transfer, ECR storage, monitoring), deployment constraints (blue/green requirements, CodeDeploy integration, rollbacks, task drift), and availability constraints (Fargate Spot, multi-AZ, health checks, service discovery)
## Related Resources
- [AWS ECS Documentation](https://docs.aws.amazon.com/ecs/) - [ECS Task Definitions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html) - [ECS Services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html) -
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for aws-cloudformation-ecs, ready for a manual X post.
aws-cloudformation-ecs: Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container... 339 stars https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=x
Listing + install path for aws-cloudformation-ecs: https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=x Install: npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to giuseppe-trisciuoglio but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/audit)
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)giuseppe-trisciuoglio
@giuseppe-trisciuoglio
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Code Review
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
168.6K StarsAppsmith
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
40.8K StarsImplement
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
175.7K StarsVercel React Best Practices
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
30.9K StarsSandbox only
Install targets
Codex install prompt
Install the "aws-cloudformation-ecs" agent skill from https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-ecs. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stack references. Use when creating ECS clusters with CloudFormation, configuring Fargate and EC2 launch types, implementing blue/green deployments, managing auto scaling, integrating with ALB and NLB, and implementing ECS best practices. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"giuseppe-trisciuoglio-aws-cloudformation-ecs","task":"Install aws-cloudformation-ecs","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Maintenance
fresh
18d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
339
72/100 Quality · 75/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
339 GitHub stars
Repo activity
339 stars, 39 forks
Maintenance
18d since push
License
MIT
Install
npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecsDo not use when
Alternative
168.6K Stars
npx skills add mattpocock/skills --skill code-review
Alternative
40.8K Stars
npx skills add appsmithorg/appsmith
Alternative
175.7K Stars
npx skills add mattpocock/skills --skill implement
Alternative
30.9K Stars
npx skills add vercel-labs/agent-skills --skill vercel-react-best-practices
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20aws-cloudformation-ecs%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20aws-cloudformation-ecs%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install
Agent should check
Copy prompt
Task: Use aws-cloudformation-ecs in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20aws-cloudformation-ecs%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install
Install command: npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install
LLM text format
/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install?format=text
Find alternatives
/api/skills/search?q=aws-cloudformation-ecs&limit=3
Agent prompt
Use aws-cloudformation-ecs for this task. Review https://www.openagentskill.com/api/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/install, then install with: npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/giuseppe-trisciuoglio-aws-cloudformation-ecs
LLM text
/api/registry/manifest/giuseppe-trisciuoglio-aws-cloudformation-ecs?format=text
Install alias
/api/registry/install/giuseppe-trisciuoglio-aws-cloudformation-ecs
Recommend
/api/registry/recommend?task=Use%20aws-cloudformation-ecs%20in%20an%20agent%20workflow&limit=3
Agent fit
Coding agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
Coding agents
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO339 GitHub stars
Stars/forks activity
CHECK339 stars, 39 forks; issue activity unavailable in current metadata
Recent maintenance
PASS18d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Alternative shortlist
Similar skills that may fit this task.
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
--- name: aws-cloudformation-ecs description: Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, CodeDeploy integration, ALB integration, service discovery, monitoring, logging, template structure, parameters, outputs, and cross-stack references. Use when creating ECS clusters with CloudFormation, configuring Fargate and EC2 launch types, implementing blue/green deployments, managing auto scaling, integrating with ALB and NLB, and implementing ECS best practices. allowed-tools: Read, Write, Bash ---
# AWS CloudFormation ECS
## Overview
Provides CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling, blue/green deployments, ALB integration, monitoring, and cross-stack references.
## When to Use
- Creating or updating ECS clusters with CloudFormation - Configuring Fargate/EC2 launch types and capacity providers - Deploying services with ALB/NLB integration or blue/green deployments - Implementing auto scaling for ECS services - Setting up monitoring with Container Insights
## Instructions
Follow these steps to create ECS infrastructure with CloudFormation:
### 1. Define ECS Cluster Parameters
Specify launch type, networking, and capacity settings:
```yaml Parameters: LaunchType: Type: String Default: FARGATE AllowedValues: - EC2 - FARGATE Description: ECS launch type
ContainerPort: Type: Number Default: 80 Description: Container port
TaskCPU: Type: String Default: 256 AllowedValues: - 256 - 512 - 1024 - 2048 - 4096 Description: Task CPU units
TaskMemory: Type: String Default: 512 AllowedValues: - 512 - 1024 - 2048 - 3072 - 4096 - 5120 - 6144 - 7168 - 8192 - 9216 - 10240 Description: Task memory in MB ```
### 2. Create ECS Cluster
Define the cluster infrastructure:
```yaml Resources: ECSCluster: Type: AWS::ECS::Cluster Properties: ClusterName: !Sub "${AWS::StackName}-cluster" ClusterSettings: - Name: containerInsights Value: enabled CapacityProviders: - FARGATE - FARGATE_SPOT DefaultCapacityProviderStrategy: - CapacityProvider: FARGATE Weight: 1 - CapacityProvider: FARGATE_SPOT Weight: 0 ```
### 3. Create Task Definition
Define container configurations:
```yaml Resources: TaskDefinition: Type: AWS::ECS::TaskDefinition Properties: Family: !Sub "${AWS::StackName}-task" NetworkMode: awsvpc RequiresCompatibilities: - FARGATE Cpu: !Ref TaskCPU Memory: !Ref TaskMemory ExecutionRoleArn: !Ref ExecutionRole TaskRoleArn: !Ref TaskRole ContainerDefinitions: - Name: application Image: !Ref ImageUrl PortMappings: - ContainerPort: !Ref ContainerPort Protocol: tcp Environment: - Name: LOG_LEVEL Value: INFO LogConfiguration: LogDriver: awslogs Options: awslogs-group: !Ref LogGroup awslogs-region: !Ref AWS::Region awslogs-stream-prefix: ecs Memory: !Ref TaskMemory ```
**Validate task definition syntax before proceeding:** ```bash aws cloudformation validate-template --template-body file://template.yaml ```
### 4. Configure Execution Roles
Set up IAM roles for task execution:
```yaml Resources: ExecutionRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Principal: Service: ecs-tasks.amazonaws.com Action: sts:AssumeRole ManagedPolicyArns: - arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy
TaskRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Principal: Service: ecs-tasks.amazonaws.com Action: sts:AssumeRole Policies: - PolicyName: S3Access PolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Action: - s3:GetObject Resource: !Sub "${DataBucket.Arn}/*" ```
### 5. Create ECS Service
Define the service configuration:
```yaml Resources: ECSService: Type: AWS::ECS::Service Properties: ServiceName: !Sub "${AWS::StackName}-service" Cluster: !Ref ECSCluster TaskDefinition: !Ref TaskDefinition DesiredCount: 2 LaunchType: FARGATE NetworkConfiguration: AwsvpcConfiguration: Subnets: - !Ref PrivateSubnet1 - !Ref PrivateSubnet2 SecurityGroups: - !Ref SecurityGroup AssignPublicIp: DISABLED LoadBalancers: - TargetGroupArn: !Ref TargetGroup ContainerName: application ContainerPort: !Ref ContainerPort ```
### 6. Configure Load Balancer
Set up ALB for traffic distribution:
```yaml Resources: LoadBalancer: Type: AWS::ElasticLoadBalancingV2::LoadBalancer Properties: Name: !Sub "${AWS::StackName}-alb" Scheme: internet-facing Type: application Subnets: - !Ref PublicSubnet1 - !Ref PublicSubnet2 SecurityGroups: - !Ref ALBSecurityGroup
TargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: Port: 80 Protocol: HTTP VpcId: !Ref VPC TargetType: ip
Listener: Type: AWS::ElasticLoadBalancingV2::Listener Properties: DefaultActions: - TargetGroupArn: !Ref TargetGroup Type: forward LoadBalancerArn: !Ref LoadBalancer Port: 80 Protocol: HTTP ```
### 7. Implement Auto Scaling
Configure Application Auto Scaling:
```yaml Resources: ScalableTarget: Type: AWS::ApplicationAutoScaling::ScalableTarget Properties: MaxCapacity: 10 MinCapacity: 1 ResourceId: !Sub "service/${ECSCluster}/${ECSService}" ScalableDimension: ecs:service:DesiredCount ServiceNamespace: ecs
ScalingPolicy: Type: AWS::ApplicationAutoScaling::ScalingPolicy Properties: PolicyName: !Sub "${AWS::StackName}-scaling" PolicyType: TargetTrackingScaling ScalingTargetId: !Ref ScalableTarget TargetTrackingScalingPolicyConfiguration: TargetValue: 70.0 PredefinedMetricSpecification: PredefinedMetricType: ECSServiceAverageCPUUtilization ```
### 8. Configure Monitoring
Enable CloudWatch Container Insights:
```yaml Resources: LogGroup: Type: AWS::Logs::LogGroup Properties: LogGroupName: !Sub "/ecs/${AWS::StackName}" RetentionInDays: 7 ```
**Before deployment:** Create a change set to preview changes: ```bash aws cloudformation create-change-set \ --stack-name my-ecs-stack \ --template-body file://template.yaml \ --change-set-type CREATE aws cloudformation execute-change-set --change-set-name <arn> ```
## Best Practices
### Task Definition - Use `Family` naming for version tracking and immutable deployments - Keep task definition under 1 KB (CloudFormation limit) by referencing external configs - Configure `HealthCheck` in container definitions for ECS health monitoring - Set both `Cpu` and `Memory` at task level for Fargate
### Service Deployment - Enable `DeploymentCircuitBreaker` for automatic rollback on failures - Use `HealthCheckGracePeriodSeconds` matching application startup time - Configure `MinimumHealthyPercent` (100) and `MaximumPercent` (200) for zero-downtime updates - Reference task definition by logical ID only—ECS automatically uses latest revision
### Networking - Always use `awsvpc` network mode for Fargate - Place tasks in private subnets with NAT gateway for outbound access - Configure security groups to allow only required ports (not 0.0.0.0/0)
### Scaling - Use Fargate Spot with base capacity of 1 on-demand for cost optimization - Set `MaxHealthyDuration` on capacity provider strategy for Spot interruption handling - Monitor `STEADY_STATE` failures in CloudWatch for task startup issues
## Constraints and Warnings
### Resource Limits - Task definition size limit: 1 KB when using CloudFormation (use ParameterStore/Secrets Manager for large configs) - Maximum 10 containers per task definition in Fargate - CPU must be specified for Fargate tasks (256-4096 units, in 1024 increments) - Memory must be allocated (512-30720 MB depending on CPU)
### Operational Limits - ENI limits apply per subnet—plan for at least 1 ENI per task in each AZ - Fargate Spot tasks receive 2-minute interruption notice—implement graceful shutdown signals (SIGTERM) - Service updates require new task definition revision—cannot modify existing versions - `DesiredCount` updates during deployment may conflict with auto scaling policies
### CloudFormation-Specific - Cross-stack references required for VPC IDs, Subnet IDs, and Security Group IDs passed between stacks - Use `!GetAtt` for referencing stack outputs in same template - Ensure IAM role ARNs use `Fn::Sub` with stack name for portability
## Examples
### Minimal Fargate Service ```yaml AWSTemplateFormatVersion: "2010-09-09" Description: Minimal ECS Fargate service
Resources: Cluster: Type: AWS::ECS::Cluster Properties: ClusterName: !Sub "${AWS::StackName}-cluster"
TaskDefinition: Type: AWS::ECS::TaskDefinition Properties: Family: !Sub "${AWS::StackName}-task" NetworkMode: awsvpc RequiresCompatibilities: [FARGATE] Cpu: 256 Memory: 512 ContainerDefinitions: - Name: app Image: nginx:latest PortMappings: - ContainerPort: 80
Service: Type: AWS::ECS::Service Properties: Cluster: !Ref Cluster ServiceName: !Sub "${AWS::StackName}-svc" TaskDefinition: !Ref TaskDefinition DesiredCount: 2 LaunchType: FARGATE DeploymentCircuitBreaker: Enable: true Rollback: true ```
### ECS with ALB Integration ```yaml Resources: Service: Type: AWS::ECS::Service Properties: Cluster: !Ref ECSCluster TaskDefinition: !Ref TaskDefinition DesiredCount: 2 LaunchType: FARGATE HealthCheckGracePeriodSeconds: 30 NetworkConfiguration: AwsvpcConfiguration: Subnets: [!Ref PrivateSubnet1, !Ref PrivateSubnet2] SecurityGroups: [!Ref TaskSecurityGroup] LoadBalancers: - TargetGroupArn: !Ref TargetGroup ContainerName: app ContainerPort: 8080
TargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: Port: 80 Protocol: HTTP VpcId: !Ref VPC TargetType: ip HealthCheckPath: /health ```
## References
For detailed implementation guidance, see:
- **[constraints.md](references/constraints.md)** - Resource limits (task definition size, container limits, memory limits, CPU limits), operational constraints (service updates, ENI limits, task start time, scaling delays), security constraints (IAM roles, network mode, security groups, secrets rotation), cost considerations (Fargate pricing, data transfer, ECR storage, monitoring), deployment constraints (blue/green requirements, CodeDeploy integration, rollbacks, task drift), and availability constraints (Fargate Spot, multi-AZ, health checks, service discovery)
## Related Resources
- [AWS ECS Documentation](https://docs.aws.amazon.com/ecs/) - [ECS Task Definitions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html) - [ECS Services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html) -
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for aws-cloudformation-ecs, ready for a manual X post.
aws-cloudformation-ecs: Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container... 339 stars https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=x
Listing + install path for aws-cloudformation-ecs: https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=x Install: npx skills add giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-ecs
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to giuseppe-trisciuoglio but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs/audit)
[](https://www.openagentskill.com/skills/giuseppe-trisciuoglio-aws-cloudformation-ecs?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)giuseppe-trisciuoglio
@giuseppe-trisciuoglio
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Code Review
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
168.6K StarsAppsmith
Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
40.8K StarsImplement
Implement work from an approved spec or ticket set, run focused and full tests, invoke code review, and commit the result to the current branch.
175.7K StarsVercel React Best Practices
React and Next.js performance guidance for writing, reviewing, and refactoring production UI code.
30.9K StarsPermission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness