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

Connect a 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 CodeDeploy permission to interact with GitHub on behalf of your GitHub account. This step must be completed once for each application using the CodeDeploy console.

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

    Note

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

  2. On the 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 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 Repository type, choose My application revision is stored in GitHub.

  7. Choose Connect to GitHub.

    Note

    If you see a Connect to a different GitHub account link:

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

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

    For more information, see GitHub Authentication with Applications in 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 CodeDeploy has permission, choose Cancel, and continue with the steps in Create an EC2/On-Premises Compute Platform Deployment (CLI).