sam pipeline init - Amazon Serverless Application Model
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

sam pipeline init

This page provides reference information for the Amazon Serverless Application Model Command Line Interface (Amazon SAM CLI) sam local pipeline init subcommand.

For an introduction to the Amazon SAM CLI, see What is the Amazon SAM CLI?.

The sam pipeline init subcommand generates a pipeline configuration file that your CI/CD system can use to deploy serverless applications using Amazon SAM.

Before using sam pipeline init, you must bootstrap the necessary resources for each stage in your pipeline. You can do this by running sam pipeline init --bootstrap to be guided through the setup and configuration file generation process, or refer to resources you have previously created with the sam pipeline bootstrap command.

Usage

$ sam pipeline init <options>

Options

--bootstrap

Enable interactive mode that walks the user through creating necessary Amazon infrastructure resources.

--config-env TEXT

The environment name specifying the default parameter values in the configuration file to use. The default value is default. For more information about configuration files, see Amazon SAM CLI configuration file.

--config-file TEXT

The path and file name of the configuration file containing default parameter values to use. The default value is samconfig.toml in the project root directory. For more information about configuration files, see Amazon SAM CLI configuration file.

--debug

Turns on debug logging to print debug messages that the Amazon SAM CLI generates, and to display timestamps.

--help, -h

Shows this message and exits.

--save-params

Save the parameters that you provide at the command line to the Amazon SAM configuration file.