"Network Configuration is not valid for the given networkMode of this task definition" error when using the EcsRunLauncher #17938
Replies: 1 comment
-
Dupe of #17937 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello folks. 👋
I'm trying to move from DefaultRunLauncher to EcsRunLauncher. Deamon, Ui, grpc's are running on ECS.
I'm stucked with the below error when trying to launch a run:
botocore.errorfactory.InvalidParameterException: An error occurred (InvalidParameterException) when calling the RunTask operation: Network Configuration is not valid for the given networkMode of this task definition.
I added a env var to indicate each grpc server which task definition to use and not use the deamon task def:
DAGSTER_CONTAINER_CONTEXT = "{"ecs":{"task_definition_arn":"task_def_arn", "container_name":"name"}}"
Even tough we are working with a vpc, my task definitions have no network mode indicated and are all set to default. According to https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecs/client/run_task.html|aws doc, the networkconfiguration should be provided only for task definition with network mode: "awsvpc".
Is anyone facing this issue or already resolved it ?
dagster_version: 1.2.7
Thanks for your help, cheers!
The question was originally asked in Dagster Slack.
Beta Was this translation helpful? Give feedback.
All reactions