---
title: "PUT /CreateImagePipeline"
method: PUT
path: "/CreateImagePipeline"
---

# PUT /CreateImagePipeline

`PUT /CreateImagePipeline`

Creates a new image pipeline. Image pipelines enable you to automate the creation and distribution of images.

## Request body

- object
  - `name` string, required — The name of the image pipeline.
  - `description` string — The description of the image pipeline.
  - `imageRecipeArn` string — The Amazon Resource Name (ARN) of the image recipe that will be used to configure images created by this image pipeline.
  - `containerRecipeArn` string — The Amazon Resource Name (ARN) of the container recipe that is used to configure images created by this container pipeline.
  - `infrastructureConfigurationArn` string, required — The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to build images created by this image pipeline.
  - `distributionConfigurationArn` string — The Amazon Resource Name (ARN) of the distribution configuration that will be used to configure and distribute images created by this image pipeline.
  - `imageTestsConfiguration` object — Configure image tests for your pipeline build. Tests run after building the image, to verify that the AMI or container image is valid before distributing it.
    - `imageTestsEnabled` boolean — Determines if tests should run after building the image. Image Builder defaults to enable tests to run following the image build, before image distribution.
    - `timeoutMinutes` integer — <p>The maximum time in minutes that tests are permitted to run.</p> <note> <p>The timeoutMinutes attribute is not currently active. This value is ignored.</p> </note>
  - `enhancedImageMetadataEnabled` boolean — Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
  - `schedule` object — A schedule configures how often and when a pipeline will automatically create a new image.
    - `scheduleExpression` string — <p>The cron expression determines how often EC2 Image Builder evaluates your <code>pipelineExecutionStartCondition</code>.</p> <p>For information on how to format a cron expression in Image Builder, see <a href="https://docs.aws.amazon.com/imagebuilder/latest/userguide/image-builder-cron.html">Use cron expressions in EC2 Image Builder</a>.</p>
    - `timezone` string — The timezone that applies to the scheduling expression. For example, "Etc/UTC", "America/Los_Angeles" in the <a href="https://www.joda.org/joda-time/timezones.html">IANA timezone format</a>. If not specified this defaults to UTC.
    - `pipelineExecutionStartCondition` 'EXPRESSION_MATCH_ONLY' | 'EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE' — The condition configures when the pipeline should trigger a new image build. When the <code>pipelineExecutionStartCondition</code> is set to <code>EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE</code>, and you use semantic version filters on the base image or components in your image recipe, EC2 Image Builder will build a new image only when there are new versions of the image or components in your recipe that match the semantic version filter. When it is set to <code>EXPRESSION_MATCH_ONLY</code>, it will build a new image every time the CRON expression matches the current time. For semantic version syntax, see <a href="https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_CreateComponent.html">CreateComponent</a> in the <i> EC2 Image Builder API Reference</i>.
  - `status` 'DISABLED' | 'ENABLED' — The status of the image pipeline.
  - `tags` object — The tags of the image pipeline.
  - `clientToken` string, required — The idempotency token used to make this request idempotent.
  - `imageScanningConfiguration` object — Contains settings for Image Builder image resource and container image scans.
    - `imageScanningEnabled` boolean — A setting that indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
    - `ecrConfiguration` object — Contains Amazon ECR settings for vulnerability scans.
      - `repositoryName` string — The name of the container repository that Amazon Inspector scans to identify findings for your container images. The name includes the path for the repository location. If you don’t provide this information, Image Builder creates a repository in your account named <code>image-builder-image-scanning-repository</code> for vulnerability scans of your output container images.
      - `containerTags` NonEmptyString[] — Tags for Image Builder to apply to the output container image that &amp;INS; scans. Tags can help you identify and manage your scanned images.

## Response `200`

Success

- CreateImagePipelineResponse
  - `requestId` string — The request ID that uniquely identifies this request.
  - `clientToken` string — The idempotency token used to make this request idempotent.
  - `imagePipelineArn` string — The Amazon Resource Name (ARN) of the image pipeline that was created by this request.

## Other responses

- `480` — ServiceException
- `481` — ClientException
- `482` — ServiceUnavailableException
- `483` — InvalidRequestException
- `484` — IdempotentParameterMismatchException
- `485` — ForbiddenException
- `486` — CallRateLimitExceededException
- `487` — ResourceInUseException
- `488` — ResourceAlreadyExistsException
- `489` — ServiceQuotaExceededException

---

[API](https://skmtc.net/aws/apis/imagebuilder.md) · [All operations](https://skmtc.net/aws/apis/imagebuilder/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/imagebuilder/versions/cfe68d8f8262/schema)
