Skip to content

Commit

Permalink
fix(cli): cdk ls --long outputs less-friendly stack IDs for nested as…
Browse files Browse the repository at this point in the history
…semblies (aws#17263)

Since aws#14379, `cdk ls` has outputted friendlier stack names for nested
assemblies (e.g., with pipelines). However, `cdk ls --long` still outputs the
less-friendly stack IDs.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
njlynch authored and TikiTDO committed Feb 21, 2022
1 parent d5ae0cf commit 907ee7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/cdk-toolkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export class CdkToolkit {
const long = [];
for (const stack of stacks.stackArtifacts) {
long.push({
id: stack.id,
id: stack.hierarchicalId,
name: stack.stackName,
environment: stack.environment,
});
Expand Down

0 comments on commit 907ee7b

Please sign in to comment.