My serverless.yaml
file is as follows:
JavaScript
x
25
25
1
service: aws-python
2
3
provider:
4
name: aws
5
runtime: python2.7
6
stage: beta
7
region: us-east-1
8
9
package:
10
include:
11
- deps
12
- functions
13
- lib
14
15
functions:
16
hello:
17
handler: functions/handler.function_handler
18
events:
19
- http:
20
path: ta
21
method: GET
22
- http:
23
path: ta
24
method: POST
25
I want to add this API to a Usage Plan. How is this done?
Advertisement
Answer
Used the AWS CLI with the following command
JavaScript
1
2
1
aws apigateway update-usage-plan --usage-plan-id <PLAN_ID> --patch-operations op=add,path=/apiStages,value=<API_ID>:<API_STAGE>
2