Creates an ECS service with a fixed number of instances and ignores any external changes to the desired count.
resource "aws_ecs_service" "example" { desired_count = 2 lifecycle { ignore_changes = ["desired_count"] } }