问题
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.

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