Connect a CodeDeploy application to a GitHub repository (original) (raw)

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.
  2. Choose Applications.
  3. From Applications, choose the application you want to link to your GitHub user account and choose Deploy application.
Note

You are not creating a deployment. This is currently the only way to give CodeDeploy permission to interact with GitHub on behalf of your GitHub user account. 4. Next to Repository type, choose My application revision is stored in GitHub. 5. 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. 6. If you are not already signed in to GitHub, follow the instructions on theSign in page. 7. On the Authorize application page, chooseAuthorize application. 8. Now that CodeDeploy has permission, choose Cancel, and continue with the steps in Create an EC2/On-Premises Compute Platform deployment (CLI).

Create an EC2/On-Premises Compute Platform deployment (CLI)

Create an Amazon ECS blue/green deployment through AWS CloudFormation

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.