Closed hjoly2003 closed 1 year ago
Thanks for the fix, feel free to provide a PR to fix it in the code :)
Doing a follow-up on this issue.
I've found out that when invoking npm run service:deploy
(with the suggested -all
option), two stacks of ServiceParameters are created, each with a distinct timestamp in its name. Each has its pair of json files synthetized under the cdk.out
subdirectory. Somehow, within ServiceApp.main, the long timestamp = System.currentTimeMillis();
snippet is invoked twice! Later, when I run npm run service:destroy
, it deletes only one of the two ServiceParameters.
To resolve the issue on my side, I have removed the timestamp from the name of the ServiceParameters stack. Hence, the service:deploy
command, within the package.json
file, do not need the -all
option anymore. Further investigation would be needed as for why the above snippet is executed twice.
Cheers
Thanks a lot for the follow-up. Since this seems to have been resolved, I'm closing this issue for now.
What's going wrong and not working?
Hi,
when invoking
npm run service:deploy
, the system repliesIndeed, ServiceApp.java defines two stacks: the
parametersStack
and theserviceStack
.Expected outcome
To resolve this issue and have
npm run service:deploy
silently deploying the stacks, you would have to modify the package.json file so to include an--all
option to that command: