Skip to content

Automate browser based workflows with AI

update run_task to make it possible to expose ecs task publicly (#2916)

Shuchang Zheng1d7585b40a31
diff --git a/skyvern/forge/sdk/api/aws.py b/skyvern/forge/sdk/api/aws.py
index a23f32c52..a99222efc 100644
--- a/skyvern/forge/sdk/api/aws.py
+++ b/skyvern/forge/sdk/api/aws.py
@@ -268,6 +268,7 @@ class AsyncAWSClient:
task_definition: str,
subnets: list[str],
security_groups: list[str],
+ assign_public_ip: str = "DISABLED",
) -> dict:
# https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecs/client/run_task.html
async with self._ecs_client() as client:
@@ -279,7 +280,7 @@ class AsyncAWSClient:
"awsvpcConfiguration": {
"subnets": subnets,
"securityGroups": security_groups,
- "assignPublicIp": "DISABLED",
+ "assignPublicIp": assign_public_ip,
}
},
)