(pipelines): --output Argument leaks into SimpleSynthAction when deploying the Pipeline #13303
Labels
@aws-cdk/pipelines
CDK Pipelines library
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
good first issue
Related to contributions. See CONTRIBUTING.md
needs-triage
This issue or PR still needs to be triaged.
p1
Milestone
I ran into this issue when synthesizing an app containing a CdkPipeline with a SimpleSynthAction. For my needs, I have to specify a custom --output folder when deploying the app. But this output folder path somehow leaks into the CdkPipeline itself. The SimpleSynthAction expects the cloud assembly artifact to be at the same location within the CodeBuild project.
Reproduction Steps
Define a CdkPipeline with a SimpleSynthAction:
Deploy the app with a custom output argument:
What did you expect to happen?
I would expect the pipeline to be deployed and executed successfully.
What actually happened?
The synth action in the pipeline fails. The build spec generated for the synth action looks as follows. Note the primary artifact's base-directory is
/tmp/cdk
, but the synth command writes its output tocdk.out
by default. Therefore the action has an empty output artifact and the build fails.Environment
Other
I can't see how this behaviour is intended. But if it is, I would need to change it for my case. Can I somehow specify the location of the cloud assembly artifact within the SimpleSynthAction?
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: