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

Ravi Sir's Cards › AWS

Pillow layer vs stub

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

Pillow layer vs stub Python zip uploads cannot easily ship native image libraries. Labs still need a wiring test. A Lambda layer can attach Pillow for real resize. Without it, a stub copies the object so S3+DynamoDB wiring still verifies. Layers › Add a community Pillow layer for Python 3.12 in ap-south-1, or leave stub path on. Memory 512 MB, timeout 30 s. With Pillow, a 2000 px JPG becomes ~200
Pillow layer vs stub · Download PNG
Read card text

What this card says

Why do we need it?

Python zip uploads cannot easily ship native image libraries. Labs still need a wiring test.

What is it?

A Lambda layer can attach Pillow for real resize. Without it, a stub copies the object so S3+DynamoDB wiring still verifies.

How to do it

Layers › Add a community Pillow layer for Python 3.12 in ap-south-1, or leave stub path on. Memory 512 MB, timeout 30 s.

Layers

Example

With Pillow, a 2000 px JPG becomes ~200 px wide under thumbs/; without Pillow, thumb bytes ≈ original but flow works.

See all AWS revision cards