Fargate Service Deployment
Step 1: Create the ECS Service
module "web_service" {
source = "registry.patterneddesigns.ca/patterneddesigns/ecs-service/aws"
version = "2.0.0"
service_name = "web-app"
cluster_arn = aws_ecs_cluster.main.arn
task_definition_arn = aws_ecs_task_definition.web.arn
desired_count = 2
}
Step 2: Configure Load Balancer
Attach the service to an Application Load Balancer.
Step 3: Verify Deployment
Check the ECS console to verify tasks are running.