https://github.com/springload/terraform-aws-ecs-service
terraform >= 0.12 module for AWS ECS service
https://github.com/springload/terraform-aws-ecs-service
Last synced: 3 months ago
JSON representation
terraform >= 0.12 module for AWS ECS service
- Host: GitHub
- URL: https://github.com/springload/terraform-aws-ecs-service
- Owner: springload
- Created: 2019-06-06T03:29:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-12-04T02:07:05.000Z (6 months ago)
- Last Synced: 2025-12-06T03:27:50.789Z (6 months ago)
- Language: HCL
- Size: 60.5 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# terraform-aws-ecs-service
This module creates an ECS service. It supports load balanced services if required.
Has additional security measures that can be optionally enabled, such as RO filesystem, or "run as specified user".
## Enabling Fargate
To run the service on Fargate, set the following required variables:
```hcl
fargate = true
fargate_spot = false # Set to true for Fargate Spot
cpu = 256 # Required for Fargate
memory = 512 # Required for Fargate
```
Optional autoscaling configuration:
```hcl
use_fargate_scaling = true
fargate_min_capacity = 2
fargate_max_capacity = 10
fargate_cpu_target_value = 70
fargate_memory_target_value = 85
desired_count = 2 # Should match min_capacity when using autoscaling
```