Ravi Sir's Cards › AWS
Scheduled cleanup job
Seed four rows in a dedicated lab table. Two are old enough to qualify for cleanup. Set a 30-second Lambda timeout and MODE=preview. Expect 4 scanned, 2 eligible, 0 deleted and complete=true. Try flag mode first. The handler follows LastEvaluatedKey and checks createdAt before changing a row. Add the legacy UTC rule only after preview. Remove its target and delete lab resources after practice.
Read card text
What this card says
Test data
Seed four rows in a dedicated lab table. Two are old enough to qualify for cleanup.
Preview
Set a 30-second Lambda timeout and MODE=preview. Expect 4 scanned, 2 eligible, 0 deleted and complete=true.
Safe mutation
Try flag mode first. The handler follows LastEvaluatedKey and checks createdAt before changing a row.
Schedule
Add the legacy UTC rule only after preview. Remove its target and delete lab resources after practice.