Skip to content

Commit

Permalink
lambda-promtail: cloudwatch: clarify example event source
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotdobson committed Dec 5, 2023
1 parent e424e20 commit 5393735
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/lambda-promtail/lambda-promtail/cw_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ func Test_parseCWEvent(t *testing.T) {
}

for _, tt := range tests {
// https://github.com/aws/aws-lambda-go/blob/main/events/cloudwatch_logs_test.go
// Docs: https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchlogs.html
// Example CloudWatchLogEvent copied from https://github.com/aws/aws-lambda-go/blob/main/events/cloudwatch_logs_test.go
cwevent := &events.CloudwatchLogsEvent{
AWSLogs: events.CloudwatchLogsRawData{
Data: "H4sIAAAAAAAAAHWPwQqCQBCGX0Xm7EFtK+smZBEUgXoLCdMhFtKV3akI8d0bLYmibvPPN3wz00CJxmQnTO41whwWQRIctmEcB6sQbFC3CjW3XW8kxpOpP+OC22d1Wml1qZkQGtoMsScxaczKN3plG8zlaHIta5KqWsozoTYw3/djzwhpLwivWFGHGpAFe7DL68JlBUk+l7KSN7tCOEJ4M3/qOI49vMHj+zCKdlFqLaU2ZHV2a4Ct/an0/ivdX8oYc1UVX860fQDQiMdxRQEAAA==",
Expand Down

0 comments on commit 5393735

Please sign in to comment.