add enableExecuteCommand option to the run_task function (#2918)
This commit is contained in:
@@ -269,6 +269,7 @@ class AsyncAWSClient:
|
||||
subnets: list[str],
|
||||
security_groups: list[str],
|
||||
assign_public_ip: str = "DISABLED",
|
||||
enable_execute_command: bool = False,
|
||||
) -> dict:
|
||||
# https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecs/client/run_task.html
|
||||
async with self._ecs_client() as client:
|
||||
@@ -283,6 +284,7 @@ class AsyncAWSClient:
|
||||
"assignPublicIp": assign_public_ip,
|
||||
}
|
||||
},
|
||||
enableExecuteCommand=enable_execute_command,
|
||||
)
|
||||
|
||||
async def stop_task(self, cluster: str, task: str, reason: str | None = None) -> dict:
|
||||
|
||||
Reference in New Issue
Block a user