1

I encountered this error today on our AWS pipeline, in the CodeBuild Step:

VPC_CLIENT_ERROR: Unexpected EC2 error: InvalidGroup.NotFound

The only mention of this exact error I could find was here (but it's in Japanese I think) - https://qiita.com/matsuda-hiroki/items/39188d52a002b5461d6f.

I found a similar, but not the same, error here - AWS CodeBuild VPC_CLIENT_ERROR: Unexpected EC2 error: UnauthorizedOperation

Does anyone know what this means?

sashoalm
  • 75,001
  • 122
  • 434
  • 781

2 Answers2

4

VPC_CLIENT_ERROR: Unexpected EC2 error: InvalidGroup.NotFound

This error occurs when your build project is using VPC configuration (passing a VPCID, Subnets, and Security Groups) and the provided Security Group in the VPC Configuration does not exist (as you mentioned it was deleted).

shariqmaws
  • 8,152
  • 1
  • 16
  • 35
0

I was eventually told our security team had removed security groups by accident. After they fixed it the error disappeared. I have no idea what the fix entails, though.

sashoalm
  • 75,001
  • 122
  • 434
  • 781