Reputation: 79665
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?
Upvotes: 2
Views: 5526
Reputation: 8890
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).
Upvotes: 5
Reputation: 79665
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.
Upvotes: 0