Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Dynamic image resizing with Python and Serverless framework

In this example, we set up a dynamic image resizing solution with AWS S3 and a Serverless framework function written in Python. We use Pillow for image resizing.

Pre-requisites

In order to deploy the function, you will need the following:

  • API credentials for AWS with persmissions to manage S3, IAM and API Gateway
  • If not on Linux - Docker installed locally

Deploying the Serverless project

  1. Make a .env file with your AWS credentials, as in .env.example
  2. Deploy the Serverless project:
source .env
sls deploy

Example usage

https://XXX.execute-api.eu-west-1.amazonaws.com/dev/100x100/test.jpg

About

An image resizing API with Python and Serverless framework

Resources

Releases

No releases published

Packages

No packages published

Languages