GitHub Authentication for AWS CodePipeline: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 31: Line 31:


  aws codepipeline update-pipeline --cli-input-json file://pipeline.json
  aws codepipeline update-pipeline --cli-input-json file://pipeline.json
=Troubleshooting=
===="PermissionError: Could not access the GitHub repository====
{{External|https://docs.aws.amazon.com/codepipeline/latest/userguide/troubleshooting.html#troubleshooting-gs2}}

Revision as of 22:55, 13 March 2019

External

Internal

Overview

This article describes how to configure the Source stage of an AWS CodePipeline to access a GitHub repository.

Procedure

Create a Personal Access Token

Use the procedure described here:

Create a GitHub Personal Access Token

Update the Pipeline

CloudFormation

AWS CLI

TODO, not tested.

aws codepipeline get-pipeline --name MyPipeline > pipeline.json

Update pipeline.json, as described above, then

aws codepipeline update-pipeline --cli-input-json file://pipeline.json

Troubleshooting

"PermissionError: Could not access the GitHub repository

https://docs.aws.amazon.com/codepipeline/latest/userguide/troubleshooting.html#troubleshooting-gs2