|
@@ -352,6 +352,7 @@ def run_command(ecs_client, instance_ids, command):
|
|
request.set_Type("RunShellScript")
|
|
request.set_Type("RunShellScript")
|
|
request.set_CommandContent(command)
|
|
request.set_CommandContent(command)
|
|
request.set_InstanceIds(instance_id_list)
|
|
request.set_InstanceIds(instance_id_list)
|
|
|
|
+ request.set_Timeout(180)
|
|
response = send_request(ecs_client=ecs_client, request=request)
|
|
response = send_request(ecs_client=ecs_client, request=request)
|
|
logging.info(f"run_command count:{len(instance_id_list)} instance_id_list:{instance_id_list} response:{response}")
|
|
logging.info(f"run_command count:{len(instance_id_list)} instance_id_list:{instance_id_list} response:{response}")
|
|
|
|
|