Re-write the existing lambda, primarily to coordinate (and log) calls to the endpoints added in https://github.com/guardian/grid/pull/4134. It's designed to run on a schedule (currently every 15mins, regardless of stage).
hard delete a batch* of images which are is:reapable AND have been 'soft deleted' for 2 weeks or more
...logging the above and storing a permanent record to dedicated (& stage specific) S3 bucket.
* batch size is different per stage (proportional to env's ingenstion rate) but is 1000 for PROD (since this is the maximum batch for the bulk delete APIs etc. used under the hood).
Re-write the existing lambda, primarily to coordinate (and log) calls to the endpoints added in https://github.com/guardian/grid/pull/4134. It's designed to run on a schedule (currently every 15mins, regardless of stage).
Each invocation it attempts to...
is:reapable
(see https://github.com/guardian/grid/pull/3926)is:reapable
AND have been 'soft deleted' for 2 weeks or more...logging the above and storing a permanent record to dedicated (& stage specific) S3 bucket.
* batch size is different per stage (proportional to env's ingenstion rate) but is 1000 for PROD (since this is the maximum batch for the bulk delete APIs etc. used under the hood).