AWS Lambda makes it easy for you to run your code in the cloud, without managing servers. In this session, we will show you how to build a development pipeline for a serverless application using AWS Chalice and AWS Lambda. Using Chalice, we will show you how to author a Restful service, and deploying the application to multiple stages using AWS CodePipline, AWS CodeBuild and the Serverless Application Model. We will teach you how to test your code and troubleshoot issues. By the end of the session, you will have enough information to build a solid continuous delivery pipeline for your Python serverless application.
6. AWS IAM Role
AWS LambdaAmazon API Gateway
IAM Policy
Swagger Document Deployment Package
APIGateway.create_deployment()
Lambda.add_permission()
IAM.create_role()IAM.put_role_policy()
APIGateway.import_rest_api() Lambda.create_function()
7. Introducing
C h a l i c e
Python framework for creating serverless APIs
Declarative routing API
CLI for deployment and packaging
8. Hello World
from chalice import Chalice
app = Chalice(app_name='helloworld')
@app.route('/')
def index():
return {'hello': 'world'}
app.py
9. Hello World
from chalice import Chalice
app = Chalice(app_name='helloworld')
@app.route('/')
def index():
return {'hello': 'world'}
app.py
1. App object