When using ECSRun how can I configure it to not as...
# ask-community
t
When using ECSRun how can I configure it to not assign a public ip to tasks it launches?
d
Hi @Trevor Kramer! You can pass a totally custom Task Defnition to the Run Config and you should be able to configure the public IP though one of the options in the Task Definition: https://docs.amazonaws.cn/en_us/AmazonECS/latest/developerguide/task-networking.html
However, just a note that a Task that needs to communicate with Prefect Cloud needs to at least be able to call out to the public internet to report state changes to Cloud
t
@Dylan I don't think this is configured in the task definition. It is part of the boto3 run_task method.
Copy code
'assignPublicIp': 'ENABLED'|'DISABLED'
d
Hmm, I believe we pass all **kwargs down appropriately, so you should be able to pass that as a kwarg to the run config somewhere
Let me take a closer look