Hi everyone. I am running my flows in an ECS clust...
# ask-community
p
Hi everyone. I am running my flows in an ECS cluster. I need to run a flow that uses a specific security group. I found the
task_customizations
for ECSTask but I could not use that in my
prefect.yaml
I tried under
job_variables
How can I specify a security group/subnet for my flow/deployment?
m
Hey @Pedro Machado Did you solve this? I"m looking for the same solution
p
Hi Mitch. Yes, I had to go to the ecs worker pool on Prefect Cloud and edit the json under the "Base Job Template" Advanced tab. I added a section right after
taskDefinition
Copy code
"networkConfiguration": {
        "awsvpcConfiguration": {
          "subnets": [
            "subnet-xxxxxxxx"
          ],
          "assignPublicIp": "ENABLED",
          "securityGroups": [
            "sg-xxxxxxx",
            "sg-xxxxxxx"
          ]
        }
      }
the top key is
job_configuration
m
Got it! I’ll give it a shot
Thanks!
y
@Pedro Machado Hi 👋
This is the place where you’ve added this?
👍 1
p
Hi @Yaron Levi I am not on the computer now but that looks correct.