aws / aws/aws-lambda-go

Update Codebuild event to include CLIENT_ERROR as a PhaseStatus type

Open
#353 1 comment 1 reaction 0 assignees View on GitHub
enhancement type/events
Dominant language
Go
Stars
3.8k
Forks
578
Avg merge
8h 18m
Merged PRs (30d)
1

Description

**Is your feature request related to a problem? Please describe.**

My team has encountered a `VPC_CLIENT_ERROR: Unexpected EC2 error: RequestLimitExceeded` error when load testing CodeBuild.

Inspecting the build details in the web console, the status appears as a client error:
![Screen Shot 2021-01-29 at 12 05 15 PM](https://user-images.githubusercontent.com/14099737/106311240-6eae5780-622a-11eb-9e05-aaf3faee1e63.png)

However, when using the [codebuild event](https://github.com/aws/aws-lambda-go/blob/master/events/codebuild.go#L17) to unmarshall the event, we are receiving an empty string for the phase's status.

**Describe the solution you'd like**
I'd like to be able to know when a client error occurs. This could be supported by
adding the CLIENT_ERROR as a supported Phase Status type like:

```
CodeBuildPhaseStatusClientError CodeBuildPhaseStatus = "CLIENT_ERROR"
```

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.