aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.66k stars 3.92k forks source link

(pipelines): Pass changeset validation automatically if there's no changes or no changeset created #18218

Open Hi-Fi opened 2 years ago

Hi-Fi commented 2 years ago

Description

I have implemented Changeset validation according https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/pipelines/README.md#validation to our pipeline.

It would be nice that this validation passes automatically if there's no changeset created (changes in commit only to pipeline itself, or just rerun for some other reason).

Use Case

Speed up release by removing need to approve no changes on each environment.

Proposed Solution

It could work like ConfirmPermissionsBroadening by approving automatically if no changeset exists.

Maybe it could be even own class offering also notification possibility like ConfirmPermissionsBroadening does.

Other information

No response

Acknowledge

rix0rrr commented 2 years ago

It's a reasonable feature request, but not likely something we'll be able to address soon. I would propose you build this yourself and publish it to Construct Hub, or find someone else to build this for you.

You can also try c2a

Hi-Fi commented 2 years ago

Thank you for suggestions. C2a sounds very nice, sadly it's only for cdk1 at the moment.

Hi-Fi commented 2 years ago

Apparently c2a is just archived, so currently there doesn't seem to be construct for this.