You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running cfn-dia html --ci-mode results in the following error message:
$ cfn-dia html --ci-mode
Bundling asset project/proccessing_lambda_function/Code/Stage...
node:fs:585
handleErrorFromBinding(ctx);
^
Error: ENOENT: no such file or directory, open 'cdk.out/STACK_NAME.assets.template.json'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at fromCDK ([…]/node_modules/@mhlabs/cfn-diagram/shared/templateParser.js:95:30)
at Object.get ([…]/node_modules/@mhlabs/cfn-diagram/shared/templateParser.js:31:16)
at Command.<anonymous> ([…]/node_modules/@mhlabs/cfn-diagram/commands/html/index.js:29:34)
at Command.listener [as _actionHandler] ([…]/node_modules/commander/index.js:922:31)
at Command._parseCommand ([…]/node_modules/commander/index.js:1503:14)
at Command._dispatchSubcommand ([…]/node_modules/commander/index.js:1443:18)
at Command._parseCommand ([…]/node_modules/commander/index.js:1460:12)
at Command.parse ([…]/node_modules/commander/index.js:1292:10) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: 'cdk.out/STACK_NAME.assets.template.json'
}
$ rm -rf cdk.out
$ DATABASE_URI='postgresql+psycopg2://[email protected]:5432/bde' poetry run cfn-dia html --ci-mode --template-file=cdk.out/STACK_NAME.template.jsonBundling asset STACK_NAME/proccessing_lambda_function/Code/Stage...node:fs:585 handleErrorFromBinding(ctx); ^Error: ENOENT: no such file or directory, open 'cdk.out/STACK_NAME.assets.template.json' at Object.openSync (node:fs:585:3) at Object.readFileSync (node:fs:453:35) at fromCDK ([…]/node_modules/@mhlabs/cfn-diagram/shared/templateParser.js:95:30) at Object.get ([…]/node_modules/@mhlabs/cfn-diagram/shared/templateParser.js:31:16) at Command.<anonymous> ([…]/node_modules/@mhlabs/cfn-diagram/commands/html/index.js:29:34) at Command.listener [as _actionHandler] ([…]/node_modules/commander/index.js:922:31) at Command._parseCommand ([…]/node_modules/commander/index.js:1503:14) at Command._dispatchSubcommand ([…]/node_modules/commander/index.js:1443:18) at Command._parseCommand ([…]/node_modules/commander/index.js:1460:12) at Command.parse ([…]/node_modules/commander/index.js:1292:10) { errno: -2, syscall: 'open', code: 'ENOENT', path: 'cdk.out/STACK_NAME.assets.template.json'}
$ DATABASE_URI='postgresql+psycopg2://[email protected]:5432/bde' poetry run cfn-dia html --ci-mode --template-file=cdk.out/STACK_NAME.template.json
$ echo$?0
Not sure if this should be reported separately.
The text was updated successfully, but these errors were encountered:
Running
cfn-dia html --ci-mode
results in the following error message:Context:
Workaround: Specify
--template-file=cdk.out/STACK_NAME.template.json
and run the command twice after clearing out the CDK cache - it seems to ignore the specified template name the first time I run it:Not sure if this should be reported separately.
The text was updated successfully, but these errors were encountered: