Cormac
11/29/2023, 11:07 AMCormac
11/29/2023, 11:10 AMtask_customizations
to patch in my desired configuration options?Jake Kaplan
11/29/2023, 12:24 PMNetwork Configuration
under the default tab.
Alternatively you can go to the advanced tab and modify the task_run_request
directly and modify it anyway you like to be passed to: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#API_RunTask_RequestSyntaxCormac
11/29/2023, 1:47 PMCormac
11/29/2023, 1:56 PMJake Kaplan
11/29/2023, 1:59 PMNetwork Configuration
under defaults? It was added within the last month to the default job template, so depending on when you created your work pool, yours may not have it.
The job_configuration template is entirely configurable, you can add anything you'd like yourselfJake Kaplan
11/29/2023, 1:59 PMCormac
11/29/2023, 1:59 PMCormac
11/29/2023, 2:00 PMCormac
11/29/2023, 2:03 PMCormac
11/29/2023, 9:25 PMNetwork Configuration
does not work (sadly).
I tried setting the following code (actual ids masked out) but the configurations were not detected:
{
"networkConfiguration": {
"awsvpcConfiguration": {
"Subnets": [
"subnet-asdfasdf1",
"subnet-asdfasdf2"
],
"AssignPublicIp": "False",
"SecurityGroups": [
"sg-asdfasdf1",
"sg-asdfasdf2"
]
}
}
}
However, hacking the raw JSON via the "Advanced" tab does work: inserting the network configuration block as shown in your snippet above, in the task_run_request section, works. I can confirm that my task ran on my ECS cluster with the correct security groups set.Peter T
01/01/2024, 5:39 PMNetwork Configuration
in the UI for an ECS Push work pool does not have any effect, but changing the JSON in the "Advanced" tab had the desired effect.