Patterned Designs HCL Module Registry
v0.1.0 latest View all versions

Terraform module for ecs-service on aws

View Full Documentation Usage guides, examples & best practices
module "ecs-service" {
  source  = "registry.patterneddesigns.ca/patterneddesigns/ecs-service/aws"
  version = "0.1.0"
}
service_name required
string

The name of the ECS service. Must be unique within your ECS cluster.

cluster_arn required
string

ARN of the ECS cluster. Reference from another resource or data source.

task_definition_arn required
string

ARN of the task definition. Reference from aws_ecs_task_definition resource.

desired_count
number default: 1

Desired number of tasks. Minimum 1 for development, 2+ for high availability in production.

Constraints
  • Desired count must be non-negative.
service_arn

ARN of the ECS service. Use this for IAM policies and service discovery.

service_name

Name of the ECS service. Matches the input service_name.