def ecs_update_taskdef(id)
      taskdef = Aws::Ecs.task_definition(resource(id))
      debug("Registering new revision of #{taskdef.family}")
      args = %i[family cpu memory requires_compatibilities task_role_arn execution_role_arn network_mode container_definitions volumes placement_constraints]
      Aws::Ecs.client.register_task_definition(taskdef.to_hash.slice(*args)).task_definition.tap do |t|
        puts t.task_definition_arn
      end
    end
def ecs_update_taskdef(id)
      taskdef = Aws::Ecs.task_definition(resource(id))
      debug("Registering new revision of #{taskdef.family}")
      args = %i[family cpu memory requires_compatibilities task_role_arn execution_role_arn network_mode container_definitions volumes placement_constraints]
      Aws::Ecs.client.register_task_definition(taskdef.to_hash.slice(*args)).task_definition.tap do |t|
        puts t.task_definition_arn
      end
    end
deprecated: register a new revision of existing task definition