Never · AWS

Lambda container images

Worse cold starts, and they break Cognito triggers. I stopped using them.

I tried them and went back to zip packages. The cold starts are worse, and the failure mode with Cognito triggers is a user who can't sign in.

Don't use it when

  • Always, unless you genuinely need a 10 GB image or a runtime Lambda doesn't offer.

In my words: what hurts

  • Worse cold starts than zip packages.
  • Deleting the image can break the function.
  • With Cognito triggers, an idle container Lambda times out on reconnect and Cognito sign-in fails.

Gotchas, with fixes

Gotcha: Cognito gives trigger functions about 5 seconds. A cold container image can blow through that.

Fix: Keep Cognito triggers small, zip-packaged and Node.js.

Provisioning

Official Pulumi package · Official Terraform provider

Use instead

Zip-packaged Lambda functions, or Fargate when you really need a container.

Alternatives

Where it fits

Last reviewed by Nicolas Dao

Want this stack in your AWS account?

Cloudless Labs is a Sydney consultancy. We migrate on-premises systems to AWS, build serverless apps on this stack, and coach teams to ship with Claude Code and Codex.

Contact Us

For general inquiries, please contact us at:

For e-learning capabilities, please contact: