AWS EFS 的访问点
Access points for AWS EFS
我正在尝试为现有 EFS 之一创建访问点。
创建访问点后,我想将其挂载到 lambda 函数上。
---
AWSTemplateFormatVersion: '2010-09-09'
Description: "EFS ccess point cloudformation"
Resources:
AccessPointResources:
Type: AWS::EFS::AccessPoint
Properties:
FileSystemId: Fs-xxx
PosixUser:
Uid: "0"
Gid: "0"
RootDirectory:
Path: "/myefs"
下面是我在部署时遇到的错误cloudformation.Please 提示我在这里缺少什么
Model validation failed
/RootDirectorty/CreationInfo 3 schema violation found
/RootDirectorty/CreationInfo required [OwnerGid] not found
/RootDirectorty/CreationInfo required [OwnerUid] not found
/RootDirectorty/CreationInfo [permission] not found
您必须提供 CreationInfo。你可以试试:
Resources:
AccessPointResources:
Type: AWS::EFS::AccessPoint
Properties:
FileSystemId: Fs-xxx
PosixUser:
Uid: "0"
Gid: "0"
RootDirectory:
CreationInfo:
OwnerGid: "708798"
OwnerUid: "7987987"
Permissions: "0755"
Path: "/myefs"
我正在尝试为现有 EFS 之一创建访问点。
创建访问点后,我想将其挂载到 lambda 函数上。
---
AWSTemplateFormatVersion: '2010-09-09'
Description: "EFS ccess point cloudformation"
Resources:
AccessPointResources:
Type: AWS::EFS::AccessPoint
Properties:
FileSystemId: Fs-xxx
PosixUser:
Uid: "0"
Gid: "0"
RootDirectory:
Path: "/myefs"
下面是我在部署时遇到的错误cloudformation.Please 提示我在这里缺少什么
Model validation failed
/RootDirectorty/CreationInfo 3 schema violation found
/RootDirectorty/CreationInfo required [OwnerGid] not found
/RootDirectorty/CreationInfo required [OwnerUid] not found
/RootDirectorty/CreationInfo [permission] not found
您必须提供 CreationInfo。你可以试试:
Resources:
AccessPointResources:
Type: AWS::EFS::AccessPoint
Properties:
FileSystemId: Fs-xxx
PosixUser:
Uid: "0"
Gid: "0"
RootDirectory:
CreationInfo:
OwnerGid: "708798"
OwnerUid: "7987987"
Permissions: "0755"
Path: "/myefs"