Skip to content

(pipelines): changeset approval steps #16148

@rix0rrr

Description

@rix0rrr

Use Case

We'd like to be able to add steps in between the Prepare and Deploy steps of individual stacks, similar to pre and post.

Biggest challenge: how do we specify WHERE the additional steps should go?

The obviously similar choice to pre and post:

pipeline.addStage(new MyStage(), {
    intra: [
        new ManualApprovalStep('Pause'),  // <--- WHERE?
    ]
});

Won't exactly work, as the only choice is to add between all stacks, but that might not be what's intended.

┌────────────┐           ┌────────────┐                                               
│            │    ...    │            │                                               
│ S1.Prepare │───here?──▶│ S1.Deploy  │────┐                                          
│            │    ...    │            │    │    ┌────────────┐          ┌────────────┐
└────────────┘           └────────────┘    │    │            │   ...    │            │
                                           ├───▶│ S3.Prepare │──here?──▶│ S3.Deploy  │
┌────────────┐           ┌────────────┐    │    │            │   ...    │            │
│            │    ...    │            │    │    └────────────┘          └────────────┘
│ S2.Prepare │───here?──▶│ S2.Deploy  │────┘                                          
│            │    ...    │            │                                               
└────────────┘           └────────────┘             

Some discussion: https://cdk-dev.slack.com/archives/C01FDB9UFNV/p1626373420181400


This is a 🚀 Feature Request

Metadata

Metadata

Assignees

Labels

@aws-cdk/pipelinesCDK Pipelines libraryeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions