[codepipeline-actions] Can't use a token for branchName in CodeCommitAction #10263
Labels
@aws-cdk/aws-codepipeline-actions
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p1
If a token (e.g. a CfnParameter value) is used to define the branchName of the CodeCommit Repository in a CodeCommitAction, synthesis fails with:
Reproduction Steps
What did you expect to happen?
Stack is synthesised correctly.
What actually happened?
Stack fails to synthesise with error:
Environment
Other
I notice that the cause of this is during
SourceAction.bound()
:this.branch
should probably be checked to see if it's a usuable value (i.e. not a token) and if it is unusable as an ID, a random value created.The workaround is to set
trigger: CodeCommitTrigger.NONE
and create my own cloudtrail trigger.This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: