Creating an AWS CodePipeline from AWS CLI

You can use AWS CLI to create an AWS CodePipeline. For that, you need to create a JSON file with a pipeline structure and then execute the create-pipeline command with the JSON file as the input parameter. You can execute the get-pipeline command to get the JSON structure of the existing pipeline, and modify it to create the JSON file. If you don't have any existing pipeline, then you can use the AWS CodePipeline wizard to create a pipeline and use that JSON structure.

The create-pipeline command will not create an Amazon S3 bucket.

There are two ways to create a pipeline from CLI, which are as follows:

Get Expert AWS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.