Skip to main content

image_pipelines

Creates, updates, deletes, gets or lists an image_pipelines resource.

Overview

Nameimage_pipelines
TypeResource
Idaws.imagebuilder.image_pipelines

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
image_pipelineobjectThe image pipeline object.
request_idstringThe request ID that uniquely identifies this request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_image_pipelineselectimagePipelineArn, regionGets an image pipeline.
list_image_pipelinesselectregionReturns a list of image pipelines.
create_image_pipelineinsertregion, name, infrastructureConfigurationArn, clientTokenCreates a new image pipeline. Image pipelines enable you to automate the creation and distribution of images.
update_image_pipelineupdateregion, imagePipelineArn, infrastructureConfigurationArn, clientTokenUpdates an image pipeline. Image pipelines enable you to automate the creation and distribution of images. You must specify exactly one recipe for your image, using either a containerRecipeArn or an imageRecipeArn. UpdateImagePipeline does not support selective updates for the pipeline. You must specify all of the required properties in the update request, not just the properties that have changed.
delete_image_pipelinedeleteimagePipelineArn, regionDeletes an image pipeline.
start_image_pipeline_executionexecregion, imagePipelineArn, clientTokenManually triggers a pipeline to create an image.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
imagePipelineArnstringThe Amazon Resource Name (ARN) of the image pipeline to delete.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets an image pipeline.

SELECT
image_pipeline,
request_id
FROM aws.imagebuilder.image_pipelines
WHERE imagePipelineArn = '{{ imagePipelineArn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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

INSERT INTO aws.imagebuilder.image_pipelines (
name,
description,
imageRecipeArn,
containerRecipeArn,
infrastructureConfigurationArn,
distributionConfigurationArn,
imageTestsConfiguration,
enhancedImageMetadataEnabled,
schedule,
status,
tags,
imageTags,
clientToken,
imageScanningConfiguration,
workflows,
executionRole,
loggingConfiguration,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ imageRecipeArn }}',
'{{ containerRecipeArn }}',
'{{ infrastructureConfigurationArn }}' /* required */,
'{{ distributionConfigurationArn }}',
'{{ imageTestsConfiguration }}',
{{ enhancedImageMetadataEnabled }},
'{{ schedule }}',
'{{ status }}',
'{{ tags }}',
'{{ imageTags }}',
'{{ clientToken }}' /* required */,
'{{ imageScanningConfiguration }}',
'{{ workflows }}',
'{{ executionRole }}',
'{{ loggingConfiguration }}',
'{{ region }}'
RETURNING
client_token,
image_pipeline_arn,
request_id
;

UPDATE examples

Updates an image pipeline. Image pipelines enable you to automate the creation and distribution of images. You must specify exactly one recipe for your image, using either a containerRecipeArn or an imageRecipeArn. UpdateImagePipeline does not support selective updates for the pipeline. You must specify all of the required properties in the update request, not just the properties that have changed.

UPDATE aws.imagebuilder.image_pipelines
SET
imagePipelineArn = '{{ imagePipelineArn }}',
description = '{{ description }}',
imageRecipeArn = '{{ imageRecipeArn }}',
containerRecipeArn = '{{ containerRecipeArn }}',
infrastructureConfigurationArn = '{{ infrastructureConfigurationArn }}',
distributionConfigurationArn = '{{ distributionConfigurationArn }}',
imageTestsConfiguration = '{{ imageTestsConfiguration }}',
enhancedImageMetadataEnabled = {{ enhancedImageMetadataEnabled }},
schedule = '{{ schedule }}',
status = '{{ status }}',
clientToken = '{{ clientToken }}',
imageScanningConfiguration = '{{ imageScanningConfiguration }}',
workflows = '{{ workflows }}',
loggingConfiguration = '{{ loggingConfiguration }}',
executionRole = '{{ executionRole }}',
imageTags = '{{ imageTags }}'
WHERE
region = '{{ region }}' --required
AND imagePipelineArn = '{{ imagePipelineArn }}' --required
AND infrastructureConfigurationArn = '{{ infrastructureConfigurationArn }}' --required
AND clientToken = '{{ clientToken }}' --required
RETURNING
client_token,
image_pipeline_arn,
request_id;

DELETE examples

Deletes an image pipeline.

DELETE FROM aws.imagebuilder.image_pipelines
WHERE imagePipelineArn = '{{ imagePipelineArn }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Manually triggers a pipeline to create an image.

EXEC aws.imagebuilder.image_pipelines.start_image_pipeline_execution
@region='{{ region }}' --required
@@json=
'{
"imagePipelineArn": "{{ imagePipelineArn }}",
"clientToken": "{{ clientToken }}",
"tags": "{{ tags }}"
}'
;