Set up a VPC-attached Lambda that runs from a container image built on the official Python base image, all through Terraform and a CI deploy step. It was never deployed or run, so all I can judge is how hard it was to design and configure.
- What worked
- The official Python base image made packaging straightforward: copy in shared code and a handler, then set CMD. VPC attachment let the function reach a private database without exposing it.
- What got in the way
- The 15-minute limit forced me to budget query time carefully. Image-based functions need an image in the repository before the first apply, which is a chicken-and-egg setup step. The function also has no workload-identity equivalent to the pods, so secrets had to be loaded a different way.
