AWS Fundamentals Logo
AWS Fundamentals
AWS::CodePipeline::Pipeline

CodePipeline Pipeline

The AWS::CodePipeline::Pipeline resource creates a CodePipeline pipeline that describes how software changes go through a release process.

Properties

12 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
RoleArn
string
Required
Stages
Array<StageDeclaration>
Required
ArtifactStore
ArtifactStore
ArtifactStores
Array<ArtifactStoreMap>
DisableInboundStageTransitions
Array<StageTransition>
ExecutionMode
string
Name
string
Create-only
PipelineType
string
RestartExecutionOnUpdate
boolean
Write-only
Tags
Array<Tag>
Triggers
Array<PipelineTriggerDeclaration>
Variables
Array<VariableDeclaration>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
VersionstringThe version of the pipeline.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CodePipeline::Pipeline

Resources:
  MyResource:
    Type: AWS::CodePipeline::Pipeline
    Properties:
      Stages: []
      RoleArn: "arn:aws:service:region:account:resource"
      Tags:
        - Key: Environment
          Value: Production
      Name: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

iam:GetRoleiam:PassRolecodepipeline:GetPipelinecodepipeline:CreatePipelinecodepipeline:DisableStageTransitioncodepipeline:GetPipelineStatecodepipeline:TagResourcecodestar-connections:PassConnection

read

codepipeline:GetPipelinecodepipeline:ListTagsForResourcecodepipeline:GetPipelineState

update

iam:GetRoleiam:PassRolecodepipeline:EnableStageTransitioncodepipeline:StartPipelineExecutioncodepipeline:GetPipelinecodepipeline:UpdatePipelinecodepipeline:GetPipelineStatecodepipeline:DisableStageTransition

delete

codepipeline:GetPipelinecodepipeline:DeletePipeline

list

codepipeline:ListPipelines

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceCodePipeline
Properties13
Required2
TaggingSupported
Primary IDName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

Name

Related Resources

External Links