The Misleading "User is not authorized to access connection" Error in AWS CodeBuild — and Why Your IAM Policy Looks Fine
Morgan Wowk
If you've wired up an AWS CodeBuild project to pull source from GitHub via CodeConnections (formerly CodeStar Connections), you may have hit this error at the moment you call UpdateProject or trigger your first build: OAuthProviderException: User is not authorized to access connection
arn:aws:codestar-connections:us-east-1:123456789012:connection/... The error wording is wrong in two different ways at the same time, which is what makes it such a brutal debugging session. This post walks through
