Open mariusingjer opened 2 years ago
A workaround is to import the same source bucket twice in the stack.
new pipelines.CodePipeline(this, 'pipeline', {
synth: new pipelines.ShellStep('Build-codepipeline-and-self-update', {
input: pipelines.CodePipelineSource.s3(
bucket: // import bucket first time here,
'some-artifact.zip', {
trigger: cdk.aws_codepipeline_actions.S3Trigger.NONE,
actionName: 'source-nr-1'
}),
additionalInputs: {
'somewhere': pipelines.CodePipelineSource.s3(
bucket: // import bucket second time here,
'another-key-same-bucket.zip', {
trigger: cdk.aws_codepipeline_actions.S3Trigger.NONE,
actionName: 'source-nr-2'
}),
},
commands: [
'...',
],
}),
});
Describe the bug
I add two files from the same s3 bucket as source:
Fails with:
Expected Behavior
Should not fail
Current Behavior
Throws error
Reproduction Steps
See above
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.20.0
Framework Version
No response
Node.js Version
16.14.2
OS
Windows 10
Language
Typescript
Language Version
No response
Other information
No response