Skip to content

Commit 21da0f3

Browse files
committed
feat(cloudformation): group stack events by operation id and display in events view
1 parent dd02eb0 commit 21da0f3

File tree

4 files changed

+251
-157
lines changed

4 files changed

+251
-157
lines changed

packages/core/src/awsService/cloudformation/consoleLinksUtils.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ export function arnToConsoleTabUrl(arn: string, tab: 'resources' | 'events' | 'o
1111
return `https://${region}.console.aws.amazon.com/cloudformation/home?region=${region}#/stacks/${tab}?stackId=${encodeURIComponent(arn)}`
1212
}
1313

14+
export function operationIdToConsoleUrl(arn: string, operationId: string): string {
15+
const region = arn.split(':')[3]
16+
return `https://${region}.console.aws.amazon.com/cloudformation/home?region=${region}#/stacks/operations/info?stackId=${encodeURIComponent(arn)}&operationId=${operationId}`
17+
}
18+
1419
// Reference link - https://cloudscape.design/foundation/visual-foundation/iconography/ - icon name: external
1520
export function externalLinkSvg(): string {
1621
return `<svg width="14" height="14" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 12.0117H11.0098V14.0117H3C2.44772 14.0117 2 13.564 2 13.0117V5.01172H4V12.0117Z"/><path d="M13 2.01172C13.5523 2.01172 14 2.45943 14 3.01172V9.01172H12V5.43066L7.70605 9.71777L6.29395 8.30273L10.5908 4.01172H7V2.01172H13Z"/></svg>`

0 commit comments

Comments
 (0)