Skip to main content

pipelines

Creates, updates, deletes or gets a pipeline resource or lists pipelines in a region

Overview

Namepipelines
TypeResource
DescriptionThe AWS::CodePipeline::Pipeline resource creates a CodePipeline pipeline that describes how software changes go through a release process.
Idaws.codepipeline.pipelines

Fields

NameDatatypeDescription
artifact_storesarrayA mapping of artifactStore objects and their corresponding AWS Regions. There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.
disable_inbound_stage_transitionsarrayRepresents the input of a DisableStageTransition action.
stagesarrayRepresents information about a stage and its definition.
execution_modestringThe method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
restart_execution_on_updatebooleanIndicates whether to rerun the CodePipeline pipeline after you update it.
triggersarrayThe trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.
role_arnstringThe Amazon Resource Name (ARN) for CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn
namestringThe name of the pipeline.
variablesarrayA list that defines the pipeline variables for a pipeline resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9@\-_]+.
versionstringThe version of the pipeline.
artifact_storeobjectThe S3 bucket where artifacts for the pipeline are stored.
pipeline_typestringCodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.
tagsarraySpecifies the tags applied to the pipeline.
regionstringAWS region.

For more information, see AWS::CodePipeline::Pipeline.

Methods

NameAccessible byRequired Params
create_resourceINSERTStages, RoleArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all pipelines in a region.

SELECT
region,
artifact_stores,
disable_inbound_stage_transitions,
stages,
execution_mode,
restart_execution_on_update,
triggers,
role_arn,
name,
variables,
version,
artifact_store,
pipeline_type,
tags
FROM aws.codepipeline.pipelines
WHERE region = 'us-east-1';

Gets all properties from an individual pipeline.

SELECT
region,
artifact_stores,
disable_inbound_stage_transitions,
stages,
execution_mode,
restart_execution_on_update,
triggers,
role_arn,
name,
variables,
version,
artifact_store,
pipeline_type,
tags
FROM aws.codepipeline.pipelines
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

/*+ create */
INSERT INTO aws.codepipeline.pipelines (
Stages,
RoleArn,
region
)
SELECT
'{{ Stages }}',
'{{ RoleArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.codepipeline.pipelines
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';

Permissions

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

Create

iam:GetRole,
iam:PassRole,
codepipeline:GetPipeline,
codepipeline:CreatePipeline,
codepipeline:DisableStageTransition,
codepipeline:GetPipelineState,
codepipeline:TagResource,
codestar-connections:PassConnection

Read

codepipeline:GetPipeline,
codepipeline:ListTagsForResource,
codepipeline:GetPipelineState

Update

iam:GetRole,
iam:PassRole,
codepipeline:EnableStageTransition,
codepipeline:StartPipelineExecution,
codepipeline:GetPipeline,
codepipeline:UpdatePipeline,
codepipeline:GetPipelineState,
codepipeline:DisableStageTransition,
codepipeline:TagResource,
codepipeline:UntagResource,
codestar-connections:PassConnection

Delete

codepipeline:GetPipeline,
codepipeline:DeletePipeline

List

codepipeline:ListPipelines