aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

CDK Pipeline: URL for review in Manual Approval

Open pitayapj opened this issue 1 year ago • 6 comments

Describe the feature

Hi, ManualApprovalStepProps in CDK Pipeline only have comment property. Can you guys add URL for review property ?

Thank you.

Use Case

Nothing directly related to feature request but since there is no diff check implemented in cdk pipeline yet, I am current creating a website so I can check diff files exported to S3.

And ability to add my website URL in L3 construct would be much appreciated. (The ability are there, just need L3 construct update )

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

CDK version used

2

Environment details (OS name and version, etc.)

Linux

pitayapj avatar Jan 09 '25 07:01 pitayapj

Hi @pitayapj , thanks for reaching out.

AFAIU, Manual approval means pipeline will be paused waiting for human to resume it.

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.ManualApprovalStep.html

Apologies but I am not really sure I understand why you would want a URL and what URL for review would have ? Could you please help throw some more light here ?

khushail avatar Jan 09 '25 20:01 khushail

Hi @khushail Thanks for reply. Like I said in Use case. Because CDK doesn't have a way to check/ run cdk diff's output yet. (feature request in #12273) So as a work around, I included diff command in CodebuildSteps manually in multiple pipelines from multiple AWS accounts. The result will be put in a centralized S3 bucket so I can view it via CloudFront.

That is why I want the URL in my use case, so who ever will manual approve pipeline can click to it to check diff before approving.

URL for review actually is ExternalEntityLink parameter in aws cli, which is already available. Just appreciate if you guys can add it to CDK (if it's not too much trouble, notification ARN too would be awesome) https://docs.aws.amazon.com/codepipeline/latest/userguide/structure-configuration-examples.html

"configuration": {
  "CustomData": "Comments on the manual approval",
  "ExternalEntityLink": "http://my-url.com",
  "NotificationArn": "arn:aws:sns:us-west-2:12345EXAMPLE:Notification"
}

pitayapj avatar Jan 09 '25 22:01 pitayapj

Thanks @pitayapj for sharing your usecase and the link- https://docs.aws.amazon.com/codepipeline/latest/userguide/structure-configuration-examples.html, referencing sample as well.

This surely sounds useful to have. However I would seek team's input here as if its on their radar for future or something they would like to consider with given scenario.

Marking it as P2 (as its good to have) which means it won't be immediately addressed by the team but would be on their radar and contribution from community are also welcome.

khushail avatar Jan 09 '25 22:01 khushail

Happy to review PR for this.

QuantumNeuralCoder avatar Feb 10 '25 21:02 QuantumNeuralCoder

@QuantumNeuralCoder hi I created PR. First timer so please be light on the feedbacks 😀

pitayapj avatar Apr 23 '25 05:04 pitayapj

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

github-actions[bot] avatar Jun 19 '25 07:06 github-actions[bot]