<p align="center">
<img src="http://i.imgur.com/oePnHJn.jpg" alt="Zappa Rocks!"/>
</p>
## Zappa - Serverless Python
[![CI](https://github.com/zappa/Zappa/actions/workflows/ci.yml/badge.svg?branch=master&event=push)](https://github.com/zappa/Zappa/actions/workflows/ci.yml)
[![Coverage](https://img.shields.io/coveralls/zappa/Zappa.svg)](https://coveralls.io/github/zappa/Zappa)
[![PyPI](https://img.shields.io/pypi/v/Zappa.svg)](https://pypi.python.org/pypi/zappa)
[![Slack](https://img.shields.io/badge/chat-slack-ff69b4.svg)](https://zappateam.slack.com/)
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [About](#about)
- [Installation and Configuration](#installation-and-configuration)
- [Running the Initial Setup / Settings](#running-the-initial-setup--settings)
- [Basic Usage](#basic-usage)
- [Initial Deployments](#initial-deployments)
- [Updates](#updates)
- [Docker Workflows](#docker-workflows)
- [Rollback](#rollback)
- [Scheduling](#scheduling)
- [Advanced Scheduling](#advanced-scheduling)
- [Multiple Expressions](#multiple-expressions)
- [Disabled Event](#disabled-event)
- [Undeploy](#undeploy)
- [Package](#package)
- [How Zappa Makes Packages](#how-zappa-makes-packages)
- [Template](#template)
- [Status](#status)
- [Tailing Logs](#tailing-logs)
- [Remote Function Invocation](#remote-function-invocation)
- [Django Management Commands](#django-management-commands)
- [SSL Certification](#ssl-certification)
- [Deploying to a Domain With AWS Certificate Manager](#deploying-to-a-domain-with-aws-certificate-manager)
- [Deploying to a Domain With a Let's Encrypt Certificate (DNS Auth)](#deploying-to-a-domain-with-a-lets-encrypt-certificate-dns-auth)
- [Deploying to a Domain With a Let's Encrypt Certificate (HTTP Auth)](#deploying-to-a-domain-with-a-lets-encrypt-certificate-http-auth)
- [Deploying to a Domain With Your Own SSL Certs](#deploying-to-a-domain-with-your-own-ssl-certs)
- [Executing in Response to AWS Events](#executing-in-response-to-aws-events)
- [Asynchronous Task Execution](#asynchronous-task-execution)
- [Catching Exceptions](#catching-exceptions)
- [Task Sources](#task-sources)
- [Direct Invocation](#direct-invocation)
- [Remote Invocations](#remote-invocations)
- [Restrictions](#restrictions)
- [Running Tasks in a VPC](#running-tasks-in-a-vpc)
- [Responses](#responses)
- [Advanced Settings](#advanced-settings)
- [YAML Settings](#yaml-settings)
- [Advanced Usage](#advanced-usage)
- [Keeping The Server Warm](#keeping-the-server-warm)
- [Serving Static Files / Binary Uploads](#serving-static-files--binary-uploads)
- [Enabling CORS](#enabling-cors)
- [Large Projects](#large-projects)
- [Enabling Bash Completion](#enabling-bash-completion)
- [Enabling Secure Endpoints on API Gateway](#enabling-secure-endpoints-on-api-gateway)
- [API Key](#api-key)
- [IAM Policy](#iam-policy)
- [API Gateway Lambda Authorizers](#api-gateway-lambda-authorizers)
- [Cognito User Pool Authorizer](#cognito-user-pool-authorizer)
- [API Gateway Resource Policy](#api-gateway-resource-policy)
- [Setting Environment Variables](#setting-environment-variables)
- [Local Environment Variables](#local-environment-variables)
- [Remote AWS Environment Variables](#remote-aws-environment-variables)
- [Remote Environment Variables](#remote-environment-variables)
- [Remote Environment Variables (via an S3 file)](#remote-environment-variables-via-an-s3-file)
- [API Gateway Context Variables](#api-gateway-context-variables)
- [Catching Unhandled Exceptions](#catching-unhandled-exceptions)
- [Using Custom AWS IAM Roles and Policies](#using-custom-aws-iam-roles-and-policies)
- [Custom AWS IAM Roles and Policies for Deployment](#custom-aws-iam-roles-and-policies-for-deployment)
- [Custom AWS IAM Roles and Policies for Execution](#custom-aws-iam-roles-and-policies-for-execution)
- [AWS X-Ray](#aws-x-ray)
- [Globally Available Server-less Architectures](#globally-available-server-less-architectures)
- [Raising AWS Service Limits](#raising-aws-service-limits)
- [Dead Letter Queues](#dead-letter-queues)
- [Unique Package ID](#unique-package-id)
- [Application Load Balancer Event Source](#application-load-balancer-event-source)
- [Endpoint Configuration](#endpoint-configuration)
- [Example Private API Gateway configuration](#example-private-api-gateway-configuration)
- [Cold Starts (Experimental)](#cold-starts-experimental)
- [Zappa Guides](#zappa-guides)
- [Zappa in the Press](#zappa-in-the-press)
- [Sites Using Zappa](#sites-using-zappa)
- [Related Projects](#related-projects)
- [Hacks](#hacks)
- [Contributing](#contributing)
- [Using a Local Repo](#using-a-local-repo)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
## About
<p align="center">
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/Miserlou/Talks/master/serverless-sf/big.quickstart.html"><img src="http://i.imgur.com/c23kDNT.png?1" alt="Zappa Slides"/></a>
</p>
<p align="center">
<i>In a hurry? Click to see <a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/Miserlou/Talks/master/serverless-sf/big.quickstart.html">(now slightly out-dated) slides from Serverless SF</a>!</i>
</p>
**Zappa** makes it super easy to build and deploy server-less, event-driven Python applications (including, but not limited to, WSGI web apps) on AWS Lambda + API Gateway. Think of it as "serverless" web hosting for your Python apps. That means **infinite scaling**, **zero downtime**, **zero maintenance** - and at a fraction of the cost of your current deployments!
If you've got a Python web app (including Django and Flask apps), it's as easy as:
```
$ pip install zappa
$ zappa init
$ zappa deploy
```
and now you're server-less! _Wow!_
> What do you mean "serverless"?
Okay, so there still is a server - but it only has a _40 millisecond_ life cycle! Serverless in this case means **"without any permanent infrastructure."**
With a traditional HTTP server, the server is online 24/7, processing requests one by one as they come in. If the queue of incoming requests grows too large, some requests will time out. With Zappa, **each request is given its own virtual HTTP "server"** by Amazon API Gateway. AWS handles the horizontal scaling automatically, so no requests ever time out. Each request then calls your application from a memory cache in AWS Lambda and returns the response via Python's WSGI interface. After your app returns, the "server" dies.
Better still, with Zappa you only pay for the milliseconds of server time that you use, so it's many **orders of magnitude cheaper** than VPS/PaaS hosts like Linode or Heroku - and in most cases, it's completely free. Plus, there's no need to worry about load balancing or keeping servers online ever again.
It's great for deploying serverless microservices with frameworks like Flask and Bottle, and for hosting larger web apps and CMSes with Django. Or, you can use any WSGI-compatible app you like! You **probably don't need to change your existing applications** to use it, and you're not locked into using it.
Zappa also lets you build hybrid event-driven applications that can scale to **trillions of events** a year with **no additional effort** on your part! You also get **free SSL certificates**, **global app deployment**, **API access management**, **automatic security policy generation**, **precompiled C-extensions**, **auto keep-warms**, **oversized Lambda packages**, and **many other exclusive features**!
And finally, Zappa is **super easy to use**. You can deploy your application with a single command out of the box!
__Awesome!__
<p align="center">
<img src="http://i.imgur.com/f1PJxCQ.gif" alt="Zappa Demo Gif"/>
</p>
## Installation and Con
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Zappa - 无服务器 Python 关于安装和配置运行初始设置/设置基本用法初始部署更新Docker 工作流程回滚调度高级调度多个表达式禁用事件取消部署包裹Zappa 如何制作包装模板地位尾矿库远程函数调用Django 管理命令SSL 认证使用 AWS 证书管理器部署到域使用 Let's Encrypt 证书 (DNS Auth) 部署到域使用 Let's Encrypt 证书 (HTTP Auth) 部署到域使用您自己的 SSL 证书部署到域响应 AWS 事件执行异步任务执行捕获异常任务来源直接调用远程调用限制在 VPC 中运行任务响应高级设置YAML 设置高级用法保持服务器温暖提供静态文件/二进制上传启用 CORS大型项目启用 Bash 补全在 API 网关上启用安全端点API 密钥IAM 策略API 网关 Lambda 授权者Cognito 用户池授权器API 网关资源策略设置环境变量本地环境变量远程 AWS 环境变量远程环境变量远程环境变量(通过 S3 文件)
资源推荐
资源详情
资源评论
收起资源包目录
无服务器 Python.zip (496个子文件)
zappa_demo.gif 95KB
.gitignore 5KB
MANIFEST.in 63B
apigateway.GetRestApis_1.json 30KB
apigateway.GetRestApis_1.json 30KB
apigateway.GetRestApis_4.json 29KB
apigateway.GetRestApis_8.json 29KB
apigateway.GetRestApis_9.json 29KB
apigateway.GetRestApis_6.json 29KB
apigateway.GetRestApis_7.json 29KB
monitoring.GetMetricStatistics_1.json 23KB
monitoring.GetMetricStatistics_2.json 23KB
logs.FilterLogEvents_4.json 17KB
logs.FilterLogEvents_3.json 17KB
apigateway.GetRestApis_5.json 13KB
apigateway.GetRestApis_1.json 13KB
apigateway.GetRestApis_2.json 13KB
apigateway.GetRestApis_3.json 13KB
cloudformation.ListStackResources_8.json 11KB
cloudformation.ListStackResources_7.json 11KB
cloudformation.ListStackResources_9.json 10KB
cloudformation.ListStackResources_10.json 10KB
cloudformation.ListStackResources_11.json 10KB
cognito-idp.DescribeUserPool_1.json 10KB
cognito-idp.DescribeUserPool_1.json 10KB
cloudformation.ListStackResources_12.json 10KB
cloudformation.ListStackResources_6.json 10KB
cloudformation.ListStackResources_5.json 10KB
cognito-idp.DescribeUserPool_1.json 10KB
cognito-idp.DescribeUserPool_1.json 10KB
cognito-idp.DescribeUserPool_1.json 10KB
lambda.ListVersionsByFunction_1.json 7KB
lambda.ListVersionsByFunction_2.json 7KB
logs.FilterLogEvents_1.json 6KB
lambda.ListVersionsByFunction_1.json 6KB
lambda.ListVersionsByFunction_2.json 6KB
iam.GetRolePolicy_12.json 6KB
iam.GetRolePolicy_11.json 6KB
iam.GetRolePolicy_1.json 5KB
iam.GetRolePolicy_6.json 5KB
iam.GetRolePolicy_3.json 5KB
iam.GetRolePolicy_4.json 5KB
iam.GetRolePolicy_10.json 5KB
iam.GetRolePolicy_5.json 5KB
iam.GetRolePolicy_8.json 5KB
iam.GetRolePolicy_7.json 5KB
iam.GetRolePolicy_2.json 5KB
iam.GetRolePolicy_9.json 5KB
cloudformation.ListStackResources_4.json 5KB
cloudformation.DescribeStacks_7.json 5KB
cloudformation.DescribeStacks_4.json 5KB
cloudformation.DescribeStacks_13.json 5KB
cloudformation.DescribeStacks_12.json 5KB
cloudformation.DescribeStacks_11.json 5KB
cloudformation.DescribeStacks_3.json 5KB
cloudformation.DescribeStacks_8.json 5KB
cloudformation.DescribeStacks_10.json 5KB
cloudformation.DescribeStacks_9.json 5KB
cloudformation.DescribeStacks_6.json 5KB
cloudformation.DescribeStacks_2.json 5KB
cloudformation.DescribeStacks_5.json 5KB
cloudformation.DescribeStacks_14.json 5KB
cloudformation.DescribeStacks_15.json 5KB
cloudformation.ListStackResources_3.json 5KB
deploy.json 4KB
test_settings.json 4KB
iam.GetRolePolicy_2.json 4KB
logs.FilterLogEvents_1.json 4KB
logs.FilterLogEvents_2.json 4KB
logs.DescribeLogStreams_3.json 3KB
logs.DescribeLogStreams_4.json 3KB
lambda.ListVersionsByFunction_4.json 3KB
lambda.ListVersionsByFunction_1.json 3KB
lambda.ListVersionsByFunction_2.json 2KB
lambda.GetFunction_5.json 2KB
lambda.GetFunction_8.json 2KB
lambda.GetFunction_7.json 2KB
lambda.GetFunction_4.json 2KB
lambda.GetFunction_6.json 2KB
lambda.GetFunction_3.json 2KB
apigateway.PutIntegration_1.json 2KB
apigateway.GetStages_1.json 2KB
lambda.GetFunction_1.json 2KB
logs.DescribeLogStreams_1.json 2KB
lambda.GetFunction_1.json 2KB
lambda.GetFunction_1.json 2KB
lambda.GetFunction_1.json 2KB
lambda.GetFunction_2.json 2KB
test_bad_circular_extends_settings.json 2KB
apigateway.UpdateStage_3.json 2KB
apigateway.UpdateStage_2.json 2KB
zappa_settings.json 1KB
test_bad_settings.json 1KB
s3.GetObject_1.json 1KB
logs.DescribeLogStreams_1.json 1KB
logs.DescribeLogStreams_2.json 1KB
test_bad_stage_name_settings.json 1KB
iam.CreateRole_1.json 1KB
iam.GetRole_11.json 1KB
iam.GetRole_12.json 1KB
共 496 条
- 1
- 2
- 3
- 4
- 5
资源评论
徐浪老师
- 粉丝: 8306
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 电线线路残旧残坏检测22-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、TFRecord、VOC数据集合集.rar
- 基于抽象链条推理的大型语言模型高效工具使用方法研究
- Discord Clone 使用 React、ReactQuery、Tailwindcss、Redux、Socket IO、NodeJS、Express、MongoDB 和 Redis .zip
- 任务向量与算术操作:一种高效模型编辑方法
- 基于亚控KingFusion平台的燃气云平台应用
- decrypt-redis-2.8 源代码注释.zip
- 4511895645616541
- 基于工业数据库的油气田生产数据采集与管理应用
- CVE-2014-4210+Redis 未授权访问.zip
- 01111111111
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功