https://prefect.io logo
Title
r

Rikimaru Yamaguchi

02/09/2023, 6:50 AM
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

Timo Vink

02/09/2023, 7:06 AM
There's some examples on this page: https://prefecthq.github.io/prefect-aws/ecs/#prefect_aws.ecs.ECSTask
ECSTask(
    command=["echo", "hello world"],
    task_customizations=[
        {
            "op": "add",
            "path": "/networkConfiguration/awsvpcConfiguration/subnets",
            "value": ["subnet-80b6fbcd", "subnet-42a6fdgd"],
        },
    ]
)
r

Rikimaru Yamaguchi

02/09/2023, 7:07 AM
thank you!!