AWS CodeDeploy
User Guide (API Version 2014-10-06)

The procedures in this guide support the new console design. If you choose to use the older version of the console, you will find many of the concepts and basic procedures in this guide still apply. To access help in the new console, choose the information icon.

Troubleshoot GitHub Token Issues

Invalid GitHub OAuth token

AWS CodeDeploy applications created after June 2017 use GitHub OAuth tokens for each AWS region. The use of tokens tied to specific regions gives you more control over which AWS CodeDeploy applications have access to a GitHub repository.

If you receive a GitHub token error, you might have an older token that is now invalid.

To fix an invalid GitHub OAuth token:

  1. Use DeleteGitHubAccountToken to remove the old token.

  2. Add a new OAuth token. For more information, see Integrating AWS CodeDeploy with GitHub.

Maximum Number of GitHub OAuth Tokens Exceeded

When you create an AWS CodeDeploy deployment, the maximum number of allowed GitHub tokens is 10. If you receive an error about GitHub OAuth tokens, make sure you have 10 or fewer tokens. If you have more than 10 tokens, the first tokens that were created are invalid. For example, if you have 11 tokens, the first token you created is invalid. If you have 12 tokens, the first two tokens you created are invalid. For information about using the AWS CodeDeploy API to remove old tokens, see DeleteGitHubAccountToken.