Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export class EarlyValidationReporter implements ValidationReporter {

return `The template cannot be deployed because of early validation errors, but retrieving more details about those
errors failed (${error}). Make sure you have permissions to call the DescribeEvents API, or re-bootstrap
your environment with the latest version of the CLI (need at least version 30, current version ${currentVersion ?? 'unknown'}).`;
your environment by running 'cdk bootstrap' to update the Bootstrap CDK Toolkit stack.
Bootstrap toolkit stack version 30 or later is needed; current version: ${currentVersion ?? 'unknown'}.`;
}

let message = `ChangeSet '${changeSetName}' on stack '${stackName}' failed early validation`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,8 @@ test('deployStack warns when it cannot get the events in case of early validatio
}),
).rejects.toThrow(`The template cannot be deployed because of early validation errors, but retrieving more details about those
errors failed (Error: AccessDenied). Make sure you have permissions to call the DescribeEvents API, or re-bootstrap
your environment with the latest version of the CLI (need at least version 30, current version 0).`);
your environment by running 'cdk bootstrap' to update the Bootstrap CDK Toolkit stack.
Bootstrap toolkit stack version 30 or later is needed; current version: 0.`);
});

test('deploy not skipped if template did not change but one tag removed', async () => {
Expand Down
Loading