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
#28336 made diff create and parse change sets to determine accurate resource replacement information. This PR expands the change set parsing to support import type change sets.
This shows the output of diff with a single resource import:
<img width="1609" alt="Screenshot 2024-01-19 at 2 44 09 PM" src="https://github.com/aws/aws-cdk/assets/66279577/a67761fa-f0aa-4cb1-b8ec-049e116400b6">
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
options.stream.write('Hold on while we create a read-only change set to get a diff with accurate replacement information (use --no-change-set to use a less accurate but faster template-only diff)\n');
345
+
341
346
returnawaitcreateChangeSet({
342
347
cfn,
343
348
changeSetName: 'cdk-diff-change-set',
@@ -347,6 +352,8 @@ async function uploadBodyParameterAndCreateChangeSet(options: PrepareChangeSetOp
347
352
willExecute: options.willExecute,
348
353
bodyParameter,
349
354
parameters: options.parameters,
355
+
resourcesToImport: options.resourcesToImport,
356
+
role: executionRoleArn,
350
357
});
351
358
}catch(e: any){
352
359
debug(e.message);
@@ -367,12 +374,14 @@ async function createChangeSet(options: CreateChangeSetOptions): Promise<CloudFo
0 commit comments