https://prefect.io logo
e

Eduardo

08/09/2023, 1:30 PM
Hello folks 👋 Is anyone using/trying ECS Push work pools with custom subnets and security groups? The VPC defined in the work pool configuration contains multiple subnets and security groups, I need help finding a way to define the subnet and/or security group for my flow. Any thoughts?
j

Jamie Zieziula

08/09/2023, 3:51 PM
Hi! This isn’t documented super well (yet) but in your workpool definition; under the advanced tab you should be able to apply the full network configuration there under
task_run_request
so in the advanced template:
Copy code
{
  "job_configuration": {
    "task_run_request": {
      "launchType": "{{ launch_type }}",
      "networkConfiguration": { 
          "awsvpcConfiguration": { 
             "assignPublicIp": "string",
             "securityGroups": [ "string" ],
             "subnets": [ "string" ]
          }
       },
    },
}
(abbreviated)
e

Eduardo

08/10/2023, 3:50 AM
Thank you for the quick reply @Jamie Zieziula, I can confirm it worked! Previously, we did that with the ECS Task in the Deployment overrides (see attached images). But it didn't work for ECS Push. With your suggestion, we're able to isolate the configuration in a single place, the worker pool. Thank you!
j

Jamie Zieziula

08/10/2023, 4:21 AM
no problem!!