document-understanding-solution icon indicating copy to clipboard operation
document-understanding-solution copied to clipboard

cdk always redeploying full stack instead of update

Open ArlindNocaj opened this issue 4 years ago • 0 comments

The cdk stack seems to be initiated with a different uuid everytime it gets compiled. This causes the resources to be completely different and thus cause full deployment instead of incremental.

 this.resourceName = (name: any) =>
      `${id}-${name}-${this.uuid}`.toLowerCase();

    this.uuid = uuid.generate();

Possible Fix: Provide a custom/rand but fixed suffix for the resource names

ArlindNocaj avatar Sep 15 '21 10:09 ArlindNocaj