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?

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions