Terraform module for ecs-service on aws
module "ecs-service" {
source = "registry.patterneddesigns.ca/patterneddesigns/ecs-service/aws"
version = "0.1.0"
}service_name
requiredThe name of the ECS service. Must be unique within your ECS cluster.
cluster_arn
requiredARN of the ECS cluster. Reference from another resource or data source.
task_definition_arn
requiredARN of the task definition. Reference from aws_ecs_task_definition resource.
desired_countDesired number of tasks. Minimum 1 for development, 2+ for high availability in production.
service_arnARN of the ECS service. Use this for IAM policies and service discovery.
service_nameName of the ECS service. Matches the input service_name.