It doesn’t look like “dnsServers” is a parameter you can pass to ECS.client.run_task.
k
Kevin Kho
05/12/2021, 2:16 PM
That would be the only route to set something without the custom task definition so if it can’t be done there I don’t think there’s another way unfortuntately
r
Robert Bastian
05/12/2021, 2:53 PM
OK, so it looks like this isn’t possible:
Check:
Copy code
botocore.errorfactory.ClientException: An error occurred (ClientException) when calling the RegisterTaskDefinition operation: DNS servers are not supported on container when networkMode=awsvpc.
and, mate:
Copy code
For Amazon ECS tasks on Fargate, the awsvpc network mode is required.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.