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
fix(CLI): cdk diff is not clear enough about using read-only change sets (#28741)
Updates the messaging from diff when creating a changeset to clarify that the changeset will not be deployed.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
options.stream.write('Creating a change set, this may take a while...\n');
340
+
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');
341
341
returnawaitcreateChangeSet({
342
342
cfn,
343
343
changeSetName: 'cdk-diff-change-set',
@@ -349,8 +349,8 @@ async function uploadBodyParameterAndCreateChangeSet(options: PrepareChangeSetOp
349
349
parameters: options.parameters,
350
350
});
351
351
}catch(e: any){
352
-
// eslint-disable-next-line no-console
353
-
console.error(`Failed to create change set with error: '${e.message}', falling back to no change-set diff`);
352
+
debug(e.message);
353
+
options.stream.write('Could not create a change set, will base the diff on template differences (run again with -v to see the reason)\n');
0 commit comments