-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Steps for editing github codepipline step:
using aws-cli
aws codepipeline get-pipeline --name workshopPipelinename --profile awscreds_profile >/tmp/pipeline.json
vi /tmp/pipeline.json
change the Source Actions section as needed:
"configuration": {
"Owner": "my_github_account",
"Repo": "my_workshop_repo_name",
"Branch": "master",
"OAuthToken": "long token_id from github settings developer personal token"
be sure to remove the metadata section at the bottom of the json file including the created and closing braces
i.e. remove all of this
"metadata": {
"pipelineArn": "arn:aws:codepipeline:us-east-1:1234567890:demoworkshopsite-CodePipeline-1R345XBP52BD",
"updated": 1562073293.433,
"created": 1562073293.433
}
and then push the pipeline config back up:
aws codepipeline update-pipeline --cli-input-json file:///tmp/pipeline.json --profile aws_creds_profile