Hi. I want to use ECSTask, can I specify a subnet?...
# ask-community
r
Hi. I want to use ECSTask, can I specify a subnet? I found the specification of vpc_id. . . I want to run it in a private subnet, thank you.
1
t
There's some examples on this page: https://prefecthq.github.io/prefect-aws/ecs/#prefect_aws.ecs.ECSTask
Copy code
ECSTask(
    command=["echo", "hello world"],
    task_customizations=[
        {
            "op": "add",
            "path": "/networkConfiguration/awsvpcConfiguration/subnets",
            "value": ["subnet-80b6fbcd", "subnet-42a6fdgd"],
        },
    ]
)
r
thank you!!