2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
I would use a Lambda function triggered by any create action that had logic like this:
get count of objects in bucket
if count = 20 then
get create datetime for triggered object
get create datetime of objects in the bucket
loop through datetimes
find the oldest create datetime
if triggered object datetime = oldest datetime
move the files
end
end
0
Why do you have to wait at all? Why not move them one at a time? Also, this action is idempotent. If the file was already moved, it can return success.
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전