Custom hosts file on Lambda image

0

I need to add an entry into /etc/hosts file when running a lambda function using an ECR image. In ECS I can use the HostEntry property, but I can't found any similar option on Lambda. Is there any way to modify this file?

Thank you!

posta 2 anni fa554 visualizzazioni
1 Risposta
0

Lambda filesystem is read-only, except /tmp

So you cannot change the content of /etc/hosts at runtime

Instead, you can change the content during image build-time if you know the value upfront.

con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande