aws / aws/aws-lambda-go

CloudwatchLogsRawData.Parse() Handle Non-Base64

Open
#129 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
3.8k
Forks
578
Avg merge
8h 18m
Merged PRs (30d)
1

Description

When sending data from a Cloudwatch Log Destination => AWS Kinesis, and the Lambda function uses the following signature:

```
func HandleCloudWatchLogs(ctx context.Context, event events.KinesisEvent) error {
```

The incoming data is base64 decoded, which causes the `CloudwatchLogsRawData.Parse()` to fail. The `Parse()` method should just `continue` to enable this use case.

https://github.com/aws/aws-lambda-go/blob/0936c0677343deb60929d172f45e3707b33c7881/events/cloudwatch_logs.go#L23-L26

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.