It used to be possible with Fargate 1.3.0 to add entries to /etc/hosts. With 1.4.0 I get the following error:
/usr/local/bin/entrypoint.sh: line 11: /etc/hosts: Read-only file system
This is unfortunately crucial as extraHosts via task-definition is not supported with awsvpc.
I need this fixed too or I have to abandon Fargate altogether. 1.3 doesn't work because I need EFS. 1.4 doesn't work because I need the flexibility to hack the /etc/hosts and don't want to do a workaround like instantiating BIND or some other DNS solution.
This issue is now fixed and you should be able to modify /etc/hosts, /etc/hostname, and /etc/resolv.conf with PV 1.4
Most helpful comment
This issue is now fixed and you should be able to modify /etc/hosts, /etc/hostname, and /etc/resolv.conf with PV 1.4