I am trying to create access point for one of existing EFS.
After creating access point i want to mount it on a lambda fucntion.
---
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"
Below is the error i am getting while deploying cloudformation.Please suggest what i am missing here
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
You have to provide CreationInfo. You can try:
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"