stackery / sam-image-processing-demo-python

Stackery Image Processing Demo - Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stackery Image Processing Demo - Python

This is a sample template for a serverless AWS Lambda application, written in Python.

The application does image processing; images deposited in the "Uploaded Images" S3 bucket are resized to thumbnails, which are then added to the "Processed Images" bucket.

The application architecture is defined in template.yaml, a Serverless Application Model (SAM) template which can be managed through the Stackery UI at app.stackery.io.

Here is an overview of the files:

.
├── README.md                          <-- This README file
├── src                                <-- Source code dir for all AWS Lambda functions
│   └── imageProcessor                 <-- Source code dir for imageProcessor function
│       ├── requirements.txt           <-- Python pip dependencies
│       └── handler.py                 <-- Lambda imageProcessor function code
│       ├── .stackery-config.yaml      <-- Default CLI parameters for this directory
├── .stackery-config.yaml              <-- Default CLI parameters for root directory
└── template.yaml                      <-- SAM infrastructure-as-code template

Clone this stack in Stackery, deploy it, and test it as follows:

  • In the Stackery dashboard's "Deployments" tab, click on the S3 bucket resource named "Uploaded Images". Click on the bucket's ARN to view the AWS S3 Management Console for the bucket. Upload a large image. Use the same procedure to find the "Processed Images" bucket in the S3 Management Console and look for the resized image.

About

Stackery Image Processing Demo - Python


Languages

Language:Python 100.0%