_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

ECS Fargate — Production Patterns

12. 09. 2023 1 min read intermediate

Cloud Intermediate

ECS Fargate — Production Patterns

AWSFargateECSProduction 5 min read

Fargate autoscaling, EFS volumes, blue-green deploy a pricing.

Service Autoscaling

resource "aws_appautoscaling_policy" "cpu" {
  name               = "cpu-scaling"
  policy_type        = "TargetTrackingScaling"
  target_tracking_scaling_policy_configuration {
    target_value = 70.0
    predefined_metric_specification {
      predefined_metric_type = "ECSServiceAverageCPUUtilization"
    }
  }
}

EFS pro shared storage

EFS volume v task definition pro shared state mezi kontejnery. Transit encryption + IAM auth.

Blue-Green s CodeDeploy

  • Canary (10 % → 100 %), Linear, All-at-once
  • Auto rollback při alarm trigger
  • Pre/post-traffic Lambda hooks

Summary

Fargate pro production = autoscaling + EFS + CodeDeploy. Vyšší cost, ale zero node management.

Need Help with Implementation?

Our team has experience designing and implementing modern architectures. We’re happy to help.

Free Consultation

Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.