Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

Avoid recursive S3 events

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

Avoid recursive S3 events If Lambda writes a thumb into the same prefix it listens on, every write fires another invoke forever. Guard: only process keys under uploads/ (or skip any key starting with thumbs/). Write thumbs elsewhere. Event notification prefix uploads/. In code: if key.startswith(
Avoid recursive S3 events · Download PNG
Read card text

What this card says

Why do we need it?

If Lambda writes a thumb into the same prefix it listens on, every write fires another invoke forever.

What is it?

Guard: only process keys under uploads/ (or skip any key starting with thumbs/). Write thumbs elsewhere.

How to do it

Event notification prefix uploads/. In code: if key.startswith("thumbs/"): return. Dest prefix THUMB_PREFIX=thumbs/.

thumbs/

Example

One upload creates exactly one thumb and one DynamoDB row — CloudWatch shows a single invoke.

See all AWS revision cards