File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -280,8 +280,14 @@ def find_cloudwatch_source(log_group):
280
280
"api-gateway" , # e.g. Api-Gateway-Execution-Logs_xxxxxx/dev
281
281
# default location set by serverless framework for rest api access logs
282
282
"/aws/api-gateway" , # e.g. /aws/api-gateway/my-project
283
+ # Avoid touching the size limit of the log group resource policy
284
+ # https://docs.aws.amazon.com/fr_fr/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-logs-infrastructure-CWL
285
+ "/aws/vendedlogs/api-gateway" ,
283
286
# default location set by serverless framework for http api logs
284
287
"/aws/http-api" , # e.g. /aws/http-api/my-project
288
+ # Avoid touching the size limit of the log group resource policy
289
+ # https://docs.aws.amazon.com/fr_fr/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-logs-infrastructure-CWL
290
+ "/aws/vendedlogs/http-api" ,
285
291
)
286
292
):
287
293
return "apigateway"
Original file line number Diff line number Diff line change @@ -122,6 +122,16 @@ def test_apigateway_event(self):
122
122
parse_event_source ({"awslogs" : "logs" }, "/aws/http-api/my-project" ),
123
123
"apigateway" ,
124
124
)
125
+ self .assertEqual (
126
+ parse_event_source ({"awslogs" : "logs" },
127
+ "/aws/vendedlogs/http-api/my-project" ),
128
+ "apigateway" ,
129
+ )
130
+ self .assertEqual (
131
+ parse_event_source ({"awslogs" : "logs" },
132
+ "/aws/vendedlogs/http-api/my-project" ),
133
+ "apigateway" ,
134
+ )
125
135
126
136
def test_dms_event (self ):
127
137
self .assertEqual (
You can’t perform that action at this time.
0 commit comments