【发布时间】:2022-04-22 00:58:18
【问题描述】:
我的serverless.yaml文件如下:
service: aws-python
provider:
name: aws
runtime: python2.7
stage: beta
region: us-east-1
package:
include:
- deps
- functions
- lib
functions:
hello:
handler: functions/handler.function_handler
events:
- http:
path: ta
method: GET
- http:
path: ta
method: POST
我想将此 API 添加到使用计划中。这是怎么做到的?
【问题讨论】:
-
如果你要对帖子投反对票,你需要解释一下自己。
-
Serverless 默认不支持此功能,但您应该能够在 Serverless CloudFormation 模板中创建 UsagePlan 资源,或使用 AWS CLI 脚本创建 UsagePlan
标签: python amazon-web-services aws-api-gateway serverless-framework