From 6f614b769615f7caadc4c3b917ddf3203280399e Mon Sep 17 00:00:00 2001 From: Calvin Combs Date: Tue, 1 Feb 2022 12:12:43 -0800 Subject: [PATCH] review comments --- .../lib/api/cloudformation-deployments.ts | 87 +++++++----------- packages/aws-cdk/lib/cdk-toolkit.ts | 2 +- .../api/cloudformation-deployments.test.ts | 89 +++++++++---------- packages/aws-cdk/test/util.ts | 38 ++++---- 4 files changed, 97 insertions(+), 119 deletions(-) diff --git a/packages/aws-cdk/lib/api/cloudformation-deployments.ts b/packages/aws-cdk/lib/api/cloudformation-deployments.ts index 4a22cb30836be..3ea84c78c31ff 100644 --- a/packages/aws-cdk/lib/api/cloudformation-deployments.ts +++ b/packages/aws-cdk/lib/api/cloudformation-deployments.ts @@ -2,12 +2,12 @@ import * as path from 'path'; import * as cxapi from '@aws-cdk/cx-api'; import { AssetManifest } from 'cdk-assets'; import * as fs from 'fs-extra'; -import { LazyListStackResources, ListStackResources } from '../api/evaluate-cloudformation-template'; import { Tag } from '../cdk-toolkit'; import { debug, warning } from '../logging'; import { publishAssets } from '../util/asset-publishing'; import { Mode, SdkProvider, ISDK } from './aws-auth'; import { deployStack, DeployStackResult, destroyStack } from './deploy-stack'; +import { LazyListStackResources, ListStackResources } from './evaluate-cloudformation-template'; import { ToolkitInfo } from './toolkit-info'; import { CloudFormationStack, Template } from './util/cloudformation'; import { StackActivityProgress } from './util/cloudformation/stack-activity-monitor'; @@ -299,7 +299,11 @@ export class CloudFormationDeployments { public async readCurrentTemplateWithNestedStacks(rootStackArtifact: cxapi.CloudFormationStackArtifact): Promise