更新时间:2022-04-28 22:26:25
在 serverless.template 的每个函数中添加了以下内容.
Added the following in each function in the serverless.template.
"Role": "arn:aws:iam::053984854873:role/1234-Dev",
"Policies": [ "AWSLambdaBasicExecutionRole", "AWSLambdaBasicExecutionRole-ABC1234","LambdaAccess-1234" ],
"VpcConfig" : {
"SecurityGroupIds" : ["sg-4f2cbff1","sg-3584a444"],
"SubnetIds" : ["subnet-f2520727","subnet-388b4ab2"]
}