Cannot synthesize when cdk.out/mainfest.json is missing AND outdir set to anything besides 'cdk.out' #5815
Labels
bug
This issue is a bug.
duplicate
This issue is a duplicate.
p2
package/tools
Related to AWS CDK Tools or CLI
What is the problem?
I am having the same problem described here: #3717 #5586
However, the cause of the problem seems to differ in that in my case, it occurs whenever I specify an outdir other than cdk.out, whether or not I call app.synth(). In this case, I get the same error of:
ENOENT: no such file or directory, open 'cdk.out/manifest.json'
If I synthesize without a modified outdir (producing a cdk.out/mainfest.json), and then synthesize with a modified outdir, it successfully outputs the expected files to the modified outdir. So it seems that at some point during the process it needs to read from cdk.out/manifest.json, whether or not the outdir property is set to cdk.out, and then it proceeds to behave as expected.
Is it possible that 'cdk.out' is hard-coded somewhere?
Reproduction Steps
Error Log
ENOENT: no such file or directory, open 'cdk.out/manifest.json'
Environment
Other
It also appears that a cdk.out folder is created when running cdk synth with a modified outdir
Additionally, it seems that in at least one project where I am having this issue, running cdk deploy deploys the templates in cdk.out, not the specified outdir. So it seems like currently the outdir is just not really useful.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: