// StartTask Starts a new task in ECS func StartTask(svc *ecs.ECS, taskDef *string, containerInstances []*string, cluster *string, startedBy *string, overrides *ecs.TaskOverride) (*ecs.StartTaskOutput, error) { params := &ecs.StartTaskInput{ Cluster: cluster, ContainerInstances: containerInstances, TaskDefinition: taskDef, StartedBy: startedBy, Overrides: overrides, } resp, err := svc.StartTask(params) if err != nil { return nil, err } return resp, err }