Skip to main content

image_pipelines

Creates, updates, deletes or gets an image_pipeline resource or lists image_pipelines in a region

Overview

Nameimage_pipelines
TypeResource
DescriptionResource schema for AWS::ImageBuilder::ImagePipeline
Idawscc.imagebuilder.image_pipelines

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the image pipeline.
namestringThe name of the image pipeline.
descriptionstringThe description of the image pipeline.
image_tests_configurationobjectThe image tests configuration of the image pipeline.
statusstringThe status of the image pipeline.
scheduleobjectThe schedule of the image pipeline.
image_recipe_arnstringThe Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.
container_recipe_arnstringThe Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.
distribution_configuration_arnstringThe Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.
infrastructure_configuration_arnstringThe Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.
workflowsarrayWorkflows to define the image build process
enhanced_image_metadata_enabledbooleanCollects additional information about the image being created, including the operating system (OS) version and package list.
image_scanning_configurationobjectContains settings for vulnerability scans.
execution_rolestringThe execution role name/ARN for the image build, if provided
tagsobjectThe tags of this image pipeline.
regionstringAWS region.

For more information, see AWS::ImageBuilder::ImagePipeline.

Methods

NameResourceAccessible byRequired Params
create_resourceimage_pipelinesINSERTregion
delete_resourceimage_pipelinesDELETEIdentifier, region
update_resourceimage_pipelinesUPDATEIdentifier, PatchDocument, region
list_resourcesimage_pipelines_list_onlySELECTregion
get_resourceimage_pipelinesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual image_pipeline.

SELECT
region,
arn,
name,
description,
image_tests_configuration,
status,
schedule,
image_recipe_arn,
container_recipe_arn,
distribution_configuration_arn,
infrastructure_configuration_arn,
workflows,
enhanced_image_metadata_enabled,
image_scanning_configuration,
execution_role,
tags
FROM awscc.imagebuilder.image_pipelines
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new image_pipeline resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.imagebuilder.image_pipelines (
Name,
Description,
ImageTestsConfiguration,
Status,
Schedule,
ImageRecipeArn,
ContainerRecipeArn,
DistributionConfigurationArn,
InfrastructureConfigurationArn,
Workflows,
EnhancedImageMetadataEnabled,
ImageScanningConfiguration,
ExecutionRole,
Tags,
region
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ image_tests_configuration }}',
'{{ status }}',
'{{ schedule }}',
'{{ image_recipe_arn }}',
'{{ container_recipe_arn }}',
'{{ distribution_configuration_arn }}',
'{{ infrastructure_configuration_arn }}',
'{{ workflows }}',
'{{ enhanced_image_metadata_enabled }}',
'{{ image_scanning_configuration }}',
'{{ execution_role }}',
'{{ tags }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a image_pipeline resource, using stack-deploy.

/*+ update */
UPDATE awscc.imagebuilder.image_pipelines
SET PatchDocument = string('{{ {
"Description": description,
"ImageTestsConfiguration": image_tests_configuration,
"Status": status,
"Schedule": schedule,
"ImageRecipeArn": image_recipe_arn,
"ContainerRecipeArn": container_recipe_arn,
"DistributionConfigurationArn": distribution_configuration_arn,
"InfrastructureConfigurationArn": infrastructure_configuration_arn,
"Workflows": workflows,
"EnhancedImageMetadataEnabled": enhanced_image_metadata_enabled,
"ImageScanningConfiguration": image_scanning_configuration,
"ExecutionRole": execution_role,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.imagebuilder.image_pipelines
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

To operate on the image_pipelines resource, the following permissions are required:

ecr:BatchGetRepositoryScanningConfiguration,
iam:GetRole,
iam:PassRole,
iam:CreateServiceLinkedRole,
imagebuilder:TagResource,
imagebuilder:GetImagePipeline,
imagebuilder:GetImageRecipe,
imagebuilder:GetInfrastructureConfiguration,
imagebuilder:GetDistributionConfiguration,
imagebuilder:CreateImagePipeline,
imagebuilder:GetWorkflow,
inspector2:BatchGetAccountStatus