简体   繁体   English

我无法将文件系统添加到 lambda(拒绝访问)

[英]I cannot add a file system to lambda (access denied)

At https://us-east-1.console.aws.amazon.com/lambda/home?region=us-east-1#/functions/PaidProxyFunc/create/elastic-file-system?tab=configure "Add file system", when I click Save to add an EFS file system to my lambda function,https://us-east-1.console.aws.amazon.com/lambda/home?region=us-east-1#/functions/PaidProxyFunc/create/elastic-file-system?tab=configure添加文件系统”,当我点击保存将EFS文件系统添加到我的lambda function时,

You do not have sufficient permission.您没有足够的权限。 Access denied.拒绝访问。

What permissions should I add and to what?我应该添加什么权限以及添加什么权限?

Your Lambda function needs:您的 Lambda function 需要:

  • role with basic permissions具有基本权限的角色
  • AWSLambdaVPCAccessExecutionRole AWSLambdaVPCAccessExecutionRole
  • AmazonElasticFileSystemClientReadWriteAccess AmazonElasticFileSystemClientReadWriteAccess

https://aws.amazon.com/blogs/aws/new-a-shared-file-system-for-your-lambda-functions/ https://aws.amazon.com/blogs/aws/new-a-shared-file-system-for-your-lambda-functions/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM