Skip to content

Commit 968ba0b

Browse files
author
Ryan Nixon
authored
Allowing "api-gateway" string to configure source
1 parent eff0c51 commit 968ba0b

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
@@ -979,7 +979,7 @@ def parse_event_source(event, key):
979979
]:
980980
if source in key:
981981
return source.replace("/aws/", "")
982-
if "API-Gateway" in key or "ApiGateway" in key:
982+
if "api-gateway" in key.lower() or "apigateway" in key.lower():
983983
return "apigateway"
984984
if is_cloudtrail(str(key)) or (
985985
"logGroup" in event and event["logGroup"] == "CloudTrail"

0 commit comments

Comments
 (0)