New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECSRun add network mode argument #4704
Comments
I have spent some time scoping this out. Just some clarifications on the issue. There are two steps from the ECS Client when running ECS tasks. The first one is the AWS ECS takes The deprecated Proposed solutions:
We can take in the
We could create a dictionary parameter and Honestly leaning towards solution 1 right now unless someone else has input or I find that there are other arguments we want to expose on the ECSRun side. References: Current Workaround: The easiest way to specify task_definition = yaml.safe_load(
"""
networkMode: bridge
cpu: 1024
memory: 2048
containerDefinitions:
- name: flow
"""
)
ECSRun( ..., task_definition=task_definition) |
Is there any update on this issue? |
It's on our backlog to investigate further. Since there is a viable workaround (providing a task definition), it is not a high priority. |
This issue is stale because it has been open 30 days with no activity. To keep this issue open remove stale label or comment. |
Current behavior
ECSRun doesn't appear to have the ability to run an ecs job on your existing ec2 instance in your cluster (that your prefect ecs agent is running on).
There is a slack message on the prefect threads that go into it too.
"When using ECS with launch_type EC2, the default network mode used for the Task Definition is awsvpc. As I am using the default VPC whose subnets have the auto assign public IP for IPv6 is disabled, the containers cannot communicate with prefect API because they only have the private network interface.
This can be solved if bridge network mode is used. However, as long as I can see in the documentation, there is no way to modify that, just the task_definition which forces to define the whole TaskDefinition manually. "
Proposed behavior
Ability to change ECSRun to Flows on your backed ec2 instances with an additional argument in the object.
The text was updated successfully, but these errors were encountered: