Clearing files on EFS from Lambda after DataSync Operation from S3

0

After using DataSync to copy files from S3 to EFS we can see that the files have the permissions of:

-rwxr-xr-x 1 nfsnobody 65534 (when copy Ownership and copy Permissions is enabled)

or

-rw-r--r-- 1 root root (when copy Ownership and copy Permissions is disabled)

From Lambda we can see our current user is: sbx_user1051 with uid: 993, gid: 990

Because of this we're unable to delete any files copied from DataSync. Even when we change our access point, posix user we still get a permission error when trying to delete files.

Is there a better way to programmatically clear files on EFS?

没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则