def ecs_update_service(id, taskdef)
      service_name = resource(id).split('/').last
      taskdef_name = taskdef.task_definition_arn.split('/').last
      debug("Updating #{service_name} to #{taskdef_name}")
      Aws::Ecs.update_service(service: service_name, task_definition: taskdef_name).tap do |s|
        puts s.task_definition
      end
    end
def ecs_update_service(id, taskdef)
      service_name = resource(id).split('/').last
      taskdef_name = taskdef.task_definition_arn.split('/').last
      debug("Updating #{service_name} to #{taskdef_name}")
      Aws::Ecs.update_service(service: service_name, task_definition: taskdef_name).tap do |s|
        puts s.task_definition
      end
    end
deprecated: update service to use a new task definition