codepipeline
Manage CI/CD pipelines with AWS CodePipeline CLI. Create, view, and export pipelines using JSON configurations. Free and easy to use.
AWS CodePipeline CLI
Exporting Pipelines with AWS CLI
AWS CodePipeline is a CI/CD service. You can manage it using the AWS CLI. Here are some common operations.
Export a Pipeline
Use the following command to create a pipeline:
$ aws codepipeline create-pipeline --pipeline my-pipeline --cli-input-json file://pipeline.json
Creating Pipelines from JSON
You can define your pipeline in a JSON file and create the pipeline using the CLI.
Create Pipeline from JSON
Use the following command to create a pipeline from a JSON file:
$ aws codepipeline create-pipeline --cli-input-json file://pipeline.json
Viewing Pipeline Source Branch
You can view the source branch of a pipeline using the following command.
View Pipeline Source
$ aws codepipeline get-pipeline --name my-pipeline | jq -r '.pipeline.stages[] | select(.name == "Source") .actions[].configuration.Branch'