Skip to content

"Network Configuration is not valid for the given networkMode of this task definition" error when using the EcsRunLauncher #17937

Answered by gibsondan
dagsir[bot] bot asked this question in Q&A
Discussion options

You must be logged in to vote

The EcsRunLauncher will pull certain fields to pass into the boto3 run_task call using the ECS task that is launching the run. You can see how it sets the default networkConfiguration values here: https://github.com/dagster-io/dagster/blob/master/python_modules/libraries/dagster-aws/dagster_aws/ecs/tasks.py#L386-L392

It seems like that default networkConfiguration is incompatible with your task definition. You can set the "run_task_kwargs" key on your run launcher in your dagster.yaml to override the networkConfiguration value to something different, following the example here: https://docs.dagster.io/deployment/guides/aws#customizing-the-launched-runs-task

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by gibsondan
Comment options

You must be logged in to vote
2 replies
@whillas-yabble
Comment options

@alexis-smartway
Comment options

Comment options

You must be logged in to vote
4 replies
@gibsondan
Comment options

@whillas-yabble
Comment options

@gibsondan
Comment options

@whillas-yabble
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: troubleshooting Related to debugging and error messages
3 participants