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!

已提問 2 年前檢視次數 560 次
1 個回答
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.

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南