AWS previews Python framework for serverless applications

On the 11th July, 2016 Amazon announced a preview of its latest offering in the serverless computing stack, the Python framework for serverless applications. Peter Moon announced on the AWS Developer Blog “Today the AWS Developer Tools team is excited to announce the preview of the Python Serverless Microframework for AWS.”

Python Serverless Microframework for AWS

The programming model will feel familiar to those who use the flask microframework as that is what it is based on. The framework itself is currently available for download from the GitHub repository and at this stage is only suitable for developer preview and is not suitable for the production environment at this stage.

The Python Framework

The framework integrates with Amazon’s existing serverless offerings like Amazon API Gateway and AWS Lambda and enables users to create and deploy Python applications that run on API Gateway and Lambda as quickly and simply as possible. You could think of it as a flask framework for serverless applications.

At this time not every feature of the API Gateway and Lambda are currently exposed to this framework and there will be some trade-offs and restrictions with one trade-off being that Python will be the only supported language in the framework.


It also has restrictions on how applications can be structured and it does not address the creation and lifecycle of other AWS services like s3 buckets and DynamoDB tables. The framework is more for users who wish to create simple REST APIs in Python that runs on Amazon API Gateway and AWS Lambda.

The framework comes with a command line tool called chalice and developers who wish to use it at this stage will also have to have the AWS CLI installed on their host machine. The tool lets users deploy code to AWS Lambda and Amazon API Gateway using a single command “chalice deploy” and this command will handle packaging and uploading your code along with all its dependencies and will also update the execution policy and API paths.

Utilize AWS Lambda

Deploy the application to a public API endpoint and then use the curl command making an HTTP GET request to that endpoint. You can then utilize AWS Lambda’s logging feature through Amazon CloudWatch logs.

One of the great benefits of the framework is that it lets you modify the development stage of your code whilst leaving the production stage intact and you can deploy any changes that need to be rolled out when they are ready.

Significant benefits

This new serverless environment provides significant benefits for example if you have a low traffic site it can provide significant cost savings and for traffic heavy sites it provides auto-scaling capabilities without the need to create any additional AMIs.

For more information on AWS Lambda click here.

About CloudRanger

CloudRanger offer a simple DevOps automation solution to make it easy to manage backups & servers on AWS cloud. Using CloudRanger, you can easily backup your RDS and EC2 instances with snapshots and AMIs.

With an easy to use interface, managing your routine AWS tasks is simple and effective. CloudRanger saves your team time and hassle, making the day-to-day management of your AWS resources easier and more automated. CloudRanger can also help you save on your EC2 costs by starting/stopping non-production instances automatically when you need them.

Start a 14-Day Free Trial, so you can try out our range of AWS features and benefits for yourselves.


This entry has 0 replies

Comments open

Leave a reply