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?

已提問 2 年前檢視次數 162 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南