Skip to content

Instantly share code, notes, and snippets.

@fuxingloh
Last active October 14, 2021 01:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fuxingloh/2907ab548546151bddf1c4de96072bfa to your computer and use it in GitHub Desktop.
Save fuxingloh/2907ab548546151bddf1c4de96072bfa to your computer and use it in GitHub Desktop.
A list of minimal effort image storage, transformation and delivery.

Minimal effort image storage, transformation and delivery.

IaaS

  • Storage: You upload to S3
  • Delivery + Transformation: CloudFront -> API Gateway -> Lambda (Node, Sharp/Thumbor) -> S3
  • CloudFormation: 1 click and fill up some fields.
  • Only predefined S3 Bucket, no dynamic bucket routing.
  • Transformation is encoded into Base64 that can be generated by anyone. You can add Signed URL but it's quite troublesome.

SaaS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment