https://prefect.io logo
Title
m

Mac

01/31/2022, 3:27 PM
Hello everyone! I am trying to set up an ecs agent on fargate, but I don't have a "default" vpc set up, so I need to specify the network config, as I was getting this error:
ERROR - agent | Failed to infer default networkConfiguration, please explicitly configure using
--run-task-kwargs`` . However when I add the yaml path to the command, I start to receive this error:
Error: No such option: --run-task-kwargs s3://*****/options.yaml
Any thoughts?
k

Kevin Kho

01/31/2022, 3:29 PM
I think this is the same as this . Will be taking a look today
m

Mac

01/31/2022, 3:44 PM
Hey Kevin, yes this is exactly what I am experiencing
@Kevin Kho I got it to work by changing my .yaml file, it seems to be case sensitive:
networkConfiguration:
  awsvpcConfiguration:
    subnets:
      - subnet-xxxx
    securityGroups:
      - sg-xxx
    assignPublicIp: DISABLED
🙌 2
Now it shows as registered with no errors!
k

Kevin Kho

01/31/2022, 3:56 PM
Oh nice thank you!