AWS Lambda函数未保存在VPC选择中 [英] AWS Lambda function not saving on VPC selection

查看:103
本文介绍了AWS Lambda函数未保存在VPC选择中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法通过选择VPC在AWS上保存我的Lambda(Node.js)函数,该功能根本没有保存,也没有收到来自AWS的任何消息.
当我尝试在未选择VPC的情况下进行保存时,却选择了完全不保存的VPC.

I cant save my Lambda (Node.js)function on AWS with VPC selection, its not saving at all and did not get any message from AWS.
When I try to save without VPC selection its working but then I select VPC its not saving at all.

保存时始终显示相同的状态.

Its always showing same status save.

当我单击此按钮时,再次刷新回到先前的表单后,它不会保存.

When I click on this, its not saving after refresh its again back to the previous form.

推荐答案

在大多数情况下,当您为lambda配置的角色无法访问VPC时,就会发生这种情况.屏幕顶部的设计器"选项卡下显示一个错误,但是很难捕获并且并不总是可见的.

This happens most of the time when the role you have configured for lambda does not have access to the VPC. There is an error appearing at the top of the screen under the Designer tab, but it is difficult to catch and not always visible.

要解决此问题,请修改您在lambda中配置的角色,以包括名为"AWSLambdaVPCAccessExecutionRole"的策略.然后,您将能够保存此功能.

To resolve this, modify the role you have configured in lambda to include the policy named "AWSLambdaVPCAccessExecutionRole". Then you will be able to save this function.

https://docs.aws. amazon.com/lambda/latest/dg/lambda-intro-execution-role.html

这篇关于AWS Lambda函数未保存在VPC选择中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆