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

Connect an AWS CodeDeploy Application to a GitHub Repository

Before you can deploy an application from a GitHub repository for the first time using the AWS CLI, you must first give AWS CodeDeploy permission to interact with GitHub on behalf of your GitHub account. This step must be completed once for each application using the AWS CodeDeploy console.

  1. Sign in to the AWS Management Console and open the AWS CodeDeploy console at https://console.aws.amazon.com/codedeploy.

    Note

    Sign in with the same account or IAM user information you used in Getting Started.

  2. On the AWS CodeDeploy menu, choose Deployments.

  3. Choose Create deployment.

    Note

    You will not be creating a new deployment. This is currently the only way to give AWS CodeDeploy permission to interact with GitHub on behalf of your GitHub user account.

  4. In the Application drop-down list, choose the application you want to link to your GitHub user account.

  5. In the Deployment group drop-down list, choose any available deployment group.

  6. Next to Revision type, choose My application revision is stored in GitHub.

  7. Choose Connect With GitHub.

    Note

    If you see a Reconnect with GitHub link:

    You might have already authorized AWS CodeDeploy to interact with GitHub on behalf of a different GitHub account for the application.

    You might have revoked authorization for AWS CodeDeploy to interact with GitHub on behalf of the signed-in GitHub account for all applications linked to in AWS CodeDeploy.

    For more information, see GitHub Authentication with Applications in AWS CodeDeploy.

  8. If you are not already signed in to GitHub, follow the instructions on the Sign in page.

  9. On the Authorize application page, choose Authorize application.

  10. Now that AWS CodeDeploy has permission, choose Cancel, and continue with the steps in Create a Deployment (CLI).