Skip to content

Commit bc720be

Browse files
committed
Show SSM connect command next to EC2 instance ID in setup summary
1 parent bd3960f commit bc720be

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

aws/cli-installer/src/main.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@ export async function executePipeline(cfg) {
176176
`${theme.label(pad('Prometheus:'))} ${cfg.prometheusUrl}`,
177177
`${theme.label(pad('Direct Query Service Datasource:'))} ${cfg.dqsDataSourceArn || 'n/a'}`,
178178
`${theme.label(pad('Direct Query Service Role:'))} ${cfg.dqsRoleArn || 'n/a'}`,
179-
...(cfg.demoInstanceId ? [`${theme.label(pad('Demo EC2 Instance:'))} ${cfg.demoInstanceId}`] : []),
179+
...(cfg.demoInstanceId ? [
180+
`${theme.label(pad('Demo EC2 Instance:'))} ${cfg.demoInstanceId}`,
181+
`${pad('')} ${theme.muted(`└─ Connect: aws ssm start-session --target ${cfg.demoInstanceId} --region ${cfg.region}`)}`,
182+
] : []),
180183
'',
181184
`${theme.success.bold('→ Open your dashboards:')}`,
182185
` ${cfg.dashboardsUrl}`,

0 commit comments

Comments
 (0)