Skip to content

editing github and oauth token #1

@geseib

Description

@geseib

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions