GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table Of Contents
  • Quickstart and Tutorial
  • Show Source

This view

  • Original page
  • New address

GeezerVison is showing chalice.readthedocs.io — Getting Started — Python Serverless Microframework for AWS 1.15.1 documentation

Chalice Logo

AWS Chalice allows you to quickly create and deploy applications that use Amazon API Gateway and AWS Lambda. It provides:

  • A command line tool for creating, deploying, and managing your app
  • A familiar and easy to use API for declaring views in python code
  • Automatic IAM policy generation
$ pip install chalice
$ chalice new-project helloworld && cd helloworld
$ cat app.py

from chalice import Chalice

app = Chalice(app_name="helloworld")

@app.route("/")
def index():
    return {"hello": "world"}

$ chalice deploy
...
https://endpoint/dev

$ curl https://endpoint/api
{"hello": "world"}

Up and running in less than 30 seconds.

Getting Started¶

  • Quickstart and Tutorial
    • Credentials
    • Creating Your Project
    • Deploying
    • Next Steps
  • Tutorial: URL Parameters
  • Tutorial: Error Messages
  • Tutorial: Additional Routing
  • Tutorial: Request Metadata
  • Tutorial: Request Content Types
  • Tutorial: Customizing the HTTP Response
  • Tutorial: GZIP compression for json
  • Tutorial: CORS Support
  • Tutorial: Policy Generation
    • Manually Providing Policies
    • Experimental Status
  • Tutorial: Using Custom Authentication
    • API Key
    • Using AWS IAM
    • Using Amazon Cognito User Pools
    • Using Custom Authorizers
  • Tutorial: Local Mode
  • Deleting Your App

Topics¶

  • Routing
    • Other Request Metadata
  • Views
    • View Function Parameters
    • View Function Return Values
    • Error Handling
    • Specifying HTTP Methods
    • Binary Content
    • Usage Recommendations
  • Configuration File
    • Stage Specific Configuration
    • Lambda Specific Configuration
    • Examples
  • Multifile Support
  • Logging
    • Examples
  • SDK Generation
    • Example
  • Chalice Stages
    • Example
  • App Packaging
    • App Directories
    • 3rd Party Packages
    • Examples
    • Cryptography Example
  • Python Version Support
  • Changing Python Runtime Versions
  • AWS CloudFormation Support
    • Considerations
    • Template Merge
    • Example
  • Terraform Support
    • Considerations
    • Example
  • Authorization
    • AWS IAM Authorizer
    • Amazon Cognito User Pools
    • Custom Authorizers
    • Built-in Authorizers
  • Lambda Event Sources
    • Scheduled Events
    • CloudWatch Events
    • S3 Events
    • SNS Events
    • SQS Events
  • Pure Lambda Functions
  • Blueprints
    • Example
    • Blueprint Registration
    • Advanced Example
  • Websockets
    • Responding to websocket events
    • Sending a message over a websocket
  • Continuous Deployment (CD)
    • Usage example
    • CodeCommit repository
    • CodePipeline
    • CodeBuild build script
    • Deploying to beta stage
    • Extending
  • Experimental APIs
    • Opting-in to Experimental APIs
    • List of Experimental APIs

API Reference¶

  • Chalice
  • Request
  • Response
  • Authorization
    • Built-in Authorizers
  • APIGateway
  • WebsocketAPI
  • CORS
  • Event Sources
  • Blueprints
  • Websockets

Tutorials¶

  • Websocket Tutorials
    • Echo Server Example
    • Chat Server Example

Upgrade Notes¶

  • Upgrade Notes
    • 1.2.0
    • 1.0.0b2
    • 1.0.0b1
    • 0.9.0
    • 0.8.1
    • 0.7.0
    • 0.6.0

Indices and tables¶

  • Index
  • Search Page
©2016, James Saryerwinnie. | Page source
You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.