# aws/chalice

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/aws-chalice).**

11,062 stars · 1,007 forks · Python · apache-2.0

## Links

- GitHub: https://github.com/aws/chalice
- awesome-repositories: https://awesome-repositories.com/repository/aws-chalice.md

## Topics

`aws` `aws-apigateway` `aws-lambda` `cloud` `lambda` `python` `python27` `python3` `serverless` `serverless-framework`

## Description

Chalice is a framework for building and deploying serverless applications and REST APIs on AWS Lambda using Python. It functions as an infrastructure-as-code generator, mapping application logic and routing definitions directly to cloud compute resources while automating the provisioning and management of the underlying environment.

The framework distinguishes itself by analyzing source code to automatically construct the minimum necessary security permissions, ensuring least-privilege access for all deployed functions. It supports modular development through blueprint-based organization and provides a local simulation environment that allows developers to test application logic and endpoint behavior before deploying to the cloud.

Beyond core API development, the framework handles event-driven automation, enabling functions to trigger in response to cloud events, database updates, or message queue arrivals. It also facilitates real-time interactive features through managed WebSocket connections and includes built-in support for token-based authentication and request authorization to secure web endpoints.

The toolset manages the entire application lifecycle, including dependency packaging, multi-stage environment configuration, and the creation of automated CI/CD pipelines. It integrates infrastructure definitions directly with application code to maintain consistent environments across development, staging, and production.

## Tags

### Web Development

- [Serverless Frameworks](https://awesome-repositories.com/f/web-development/backend-development/web-frameworks/language-specific-ecosystems/python-web-frameworks/serverless-frameworks.md) — Provides a framework for building and deploying serverless applications and REST APIs on cloud platforms.
- [RESTful API Development](https://awesome-repositories.com/f/web-development/restful-api-development.md) — Builds and deploys scalable RESTful web services on serverless cloud platforms.
- [RESTful API Frameworks](https://awesome-repositories.com/f/web-development/restful-api-frameworks.md) — Provides a framework for defining RESTful HTTP endpoints, managing URL parameters, and handling custom domain configurations. ([source](http://aws.github.io/chalice/tutorials/index.html))
- [Real-Time Communication](https://awesome-repositories.com/f/web-development/real-time-communication.md) — Facilitates real-time interactive features through managed WebSocket connections for bidirectional communication.
- [Decorator-Based Route Mappings](https://awesome-repositories.com/f/web-development/routing-systems/routing/decorator-based-route-mappings.md) — Maps function definitions to HTTP endpoints using code decorators to automatically generate routing configurations.
- [Event Handling](https://awesome-repositories.com/f/web-development/event-handling.md) — Executes functions automatically in response to cloud events, database updates, or message queue arrivals. ([source](http://aws.github.io/chalice/main.html))
- [WebSocket Communication](https://awesome-repositories.com/f/web-development/websocket-communication.md) — Facilitates persistent bidirectional messaging between clients and servers via managed WebSocket connections. ([source](http://aws.github.io/chalice/tutorials/index.html))
- [Route Organization](https://awesome-repositories.com/f/web-development/route-organization.md) — Supports modular code organization by grouping related routes and logic into reusable blueprints.

### DevOps & Infrastructure

- [Infrastructure Provisioning Tools](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure/infrastructure-provisioning-management/infrastructure-provisioning-tools.md) — Automates the provisioning and management of cloud resources directly from application code definitions. ([source](http://aws.github.io/chalice/))
- [Serverless Deployment](https://awesome-repositories.com/f/devops-infrastructure/serverless-deployment.md) — Automates the mapping of HTTP requests to serverless functions and provisions the necessary cloud infrastructure. ([source](http://aws.github.io/chalice/main.html))
- [Infrastructure Provisioning and Management](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure/infrastructure-provisioning-management.md) — Integrates infrastructure definitions with application code to ensure consistent cloud resource provisioning.
- [Infrastructure as Code](https://awesome-repositories.com/f/devops-infrastructure/infrastructure-as-code.md) — Translates application logic and resource requirements into declarative templates for automated cloud infrastructure provisioning.
- [Infrastructure as Code Tools](https://awesome-repositories.com/f/devops-infrastructure/infrastructure-as-code-tools.md) — Automatically generates and manages cloud resource configurations and security policies from application code.
- [Cloud Infrastructure Management](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure-management.md) — Integrates infrastructure definitions with application code to automatically provision and manage cloud resources during deployment. ([source](http://aws.github.io/chalice/tutorials/index.html))
- [Deployment Stage Management](https://awesome-repositories.com/f/devops-infrastructure/deployment-stage-management.md) — Configures isolated environments for development, staging, and production to prevent configuration drift. ([source](http://aws.github.io/chalice/main.html))
- [Event-Driven Triggers](https://awesome-repositories.com/f/devops-infrastructure/event-driven-triggers.md) — Triggers backend functions automatically in response to cloud events, database updates, or message queue arrivals.
- [Serverless Development Environments](https://awesome-repositories.com/f/devops-infrastructure/serverless-development-environments.md) — Provides a local development environment for testing and debugging serverless web services and WebSocket connections.
- [CI CD Pipelines](https://awesome-repositories.com/f/devops-infrastructure/ci-cd-pipelines.md) — Creates automated CI/CD pipelines to build and deploy code updates to cloud environments upon repository changes. ([source](http://aws.github.io/chalice/))
- [Event-Driven](https://awesome-repositories.com/f/devops-infrastructure/automation-orchestration/task-execution-frameworks/automation-frameworks/triggers-events/event-driven.md) — Triggers backend logic automatically by listening for messages published to cloud notification topics and event sources. ([source](http://aws.github.io/chalice/tutorials/index.html))
- [Application Lifecycle Management](https://awesome-repositories.com/f/devops-infrastructure/application-lifecycle-management.md) — Manages the full application lifecycle, including updates to cloud resources and cleanup of provisioned infrastructure. ([source](http://aws.github.io/chalice/quickstart.html))
- [Deployment Packaging](https://awesome-repositories.com/f/devops-infrastructure/deployment-packaging.md) — Packages application code and third-party dependencies into single archives for consistent cloud execution.

### Security & Cryptography

- [Security Policies](https://awesome-repositories.com/f/security-cryptography/security-policies.md) — Analyzes source code to automatically construct and apply the minimum necessary security permissions for cloud resources. ([source](http://aws.github.io/chalice/))
- [API Access Control](https://awesome-repositories.com/f/security-cryptography/api-access-control.md) — Protects web endpoints by implementing authentication and authorization mechanisms for secure access control.
- [Request Access Restrictions](https://awesome-repositories.com/f/security-cryptography/domain-access-restrictions/request-access-restrictions.md) — Secures endpoints by validating user credentials through built-in authorizers before executing functions. ([source](http://aws.github.io/chalice/main.html))
- [Access Policy Automation](https://awesome-repositories.com/f/security-cryptography/policy-based-access-control/access-policy-automation.md) — Analyzes source code to automatically generate and apply the minimum necessary IAM security permissions for deployed functions.
- [Token-Based Authentication](https://awesome-repositories.com/f/security-cryptography/token-based-authentication.md) — Validates incoming requests using digital tokens to restrict access to protected resources. ([source](http://aws.github.io/chalice/samples/index.html))

### Development Tools & Productivity

- [Local Lambda Simulation](https://awesome-repositories.com/f/development-tools-productivity/local-development-environments/local-lambda-simulation.md) — Provides a local simulation environment to validate serverless application logic and endpoint behavior before cloud deployment.
- [Modular Architecture](https://awesome-repositories.com/f/development-tools-productivity/modular-architecture.md) — Enables modular application design through reusable blueprints to maintain manageable code structures in complex projects. ([source](http://aws.github.io/chalice/main.html))
- [Package Dependency Managers](https://awesome-repositories.com/f/development-tools-productivity/package-dependency-managers.md) — Packages application code with required third-party libraries to ensure consistent execution across deployment stages. ([source](http://aws.github.io/chalice/))

### Networking & Communication

- [Real-Time Messaging](https://awesome-repositories.com/f/networking-communication/real-time-messaging.md) — Manages persistent bidirectional WebSocket connections to synchronize data updates across connected clients. ([source](http://aws.github.io/chalice/main.html))

### Data & Databases

- [Data Resource Management](https://awesome-repositories.com/f/data-databases/data-resource-management.md) — Exposes standard CRUD operations for application data through web interfaces with automatic cloud database persistence. ([source](http://aws.github.io/chalice/samples/index.html))
