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年前557ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ