CodePipeline Manual Approval Configuration should not require an SNS Topic. #6100
Labels
@aws-cdk/aws-codepipeline
Related to AWS CodePipeline
in-progress
This issue is being actively worked on.
Description
Something I noticed, which is low priority - the simple work around is to supply an SNS topic even if you don't want to use it.
Code pipeline manual approval configuration does not appear in the pipeline if an SNS topic is not provided.
The console should show "additional information" and the "external link" if there isn't an SNS topic, so approvers in the console can read the message. Cloudformation allows this, CDK does not.
The code that causes this is the conditional here:
aws-cdk/packages/@aws-cdk/aws-codepipeline-actions/lib/manual-approval-action.ts
Lines 79 to 85 in be2e3e3
Reproduction Steps
Run the following stack and look at the configuration output:
To isolate the part of the template this convenience command is provided
npm run build ; npx cdk synth | grep -i 'Category: Approval' -A 10 -B 10
Environment
To Fix
I'm not sure what combination of those config properties is valid - if they are all valid independently the code should reflect that and allow it.
I can't seem to find this in the documentation for cloudformation - the actions show examples but don't seem to declare any other rules. I have successfully deployed an approval without SNS and with the other 2 configs.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: