我的 lambda 函数有时能访问互联网,但有时会超时,即使配置了 NAT 网关。

0

【以下的问题经过翻译处理】 我已经按照创建私有子网和公共子网的说明进行了操作。我为公共子网添加了通往互联网网关的路由,为私有子网添加了NAT网关的路由。在将VPC配置附加到lambda函数时,我设置了这两个子网。有时我能够访问lambda函数中的boto3代码,但有时它会超时,好像互联网不可用。

1 réponse
0

【以下的回答经过翻译处理】 您是想让Lambda只有对外部的互联网访问权限,还是需要对公共流量进行完全公开?它是否需要成为一个VPC Lambda?在配置子网时,您不需要同时提供公共和私有子网-而是需要在不同的AZ间提供相同类型的子网。

profile picture
EXPERT
répondu il y a 5 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions