AWS Lambda function not saving on VPC selection

▼魔方 西西 提交于 2019-12-23 13:13:16

问题


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.


回答1:


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.

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



来源:https://stackoverflow.com/questions/55760149/aws-lambda-function-not-saving-on-vpc-selection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!