ECS Service (Fargate)
Long-running container task on Fargate.
Configuration
Section titled “Configuration”| Setting | Type | Required | Default |
|---|---|---|---|
| Service name | Text | Yes | — |
| LB container name | Text | — | — |
| LB container port | Number | — | 8080 |
| Desired count | Number | — | 1 |
| Auto scaling (App Auto Scaling) | Toggle | — | true |
| Min tasks | Number | — | 2 |
| Max tasks | Number | — | 10 |
| Target tracking CPU % | Number | — | 70 |
| Launch type Options: Fargate, Fargate Spot, EC2 | Choice | — | FARGATE |
| Platform version Options: LATEST, 1.4.0 | Choice | — | LATEST |
| Scheduling strategy Options: Replica, Daemon | Choice | — | REPLICA |
| Enable ECS Exec | Toggle | — | false |
| Assign public IP | Toggle | — | false |
| Health check grace (s) | Number | — | 0 |
| Deployment min healthy % | Number | — | 100 |
| Deployment max % | Number | — | 200 |
| Deployment controller Options: ECS (rolling), CodeDeploy (blue/green), External | Choice | — | ECS |
| Propagate tags Options: None, Service, Task definition | Choice | — | NONE |
| ECS managed tags | Toggle | — | false |
| Tags | Key–value | — | — |
Connections
Section titled “Connections”| Socket | Direction | Accepts | Terraform arg |
|---|---|---|---|
| ECS cluster | Input | aws.ecs-cluster | cluster |
| Task definition | Input | aws.ecs-task-definition | task_definition |
| Target groupsmulti | Input | aws.target-group | load_balancer.target_group_arn |
| Security groupsmulti | Input | aws.security-group | network_configuration.security_groups |
| Subnetsmulti | Input | aws.subnet | network_configuration.subnets |
| Backing store | Output | any | — |
| Ingress traffic | Input | any | — |