Skip to content

Commit 9e7bbb7

Browse files
Merge pull request #193 from taiidani/patch-1
Allowing "api-gateway" string to configure source
2 parents 705b4b9 + 968ba0b commit 9e7bbb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws/logs_monitoring/lambda_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ def parse_event_source(event, key):
10301030
]:
10311031
if source in key:
10321032
return source.replace("/aws/", "")
1033-
if "API-Gateway" in key or "ApiGateway" in key:
1033+
if "api-gateway" in key.lower() or "apigateway" in key.lower():
10341034
return "apigateway"
10351035
if is_cloudtrail(str(key)) or (
10361036
"logGroup" in event and event["logGroup"] == "CloudTrail"

0 commit comments

Comments
 (0)