Skip to content

Commit e4c20d9

Browse files
committed
explicitly label the url as the launch url
1 parent 1c5b4fd commit e4c20d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ec2/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export async function rebootInstance(node?: Ec2Node) {
5050

5151
export async function linkToLaunchInstance(node?: Ec2Node) {
5252
const region = node ? node.regionCode : globals.regionProvider.guessDefaultRegion()
53-
const url = getAwsConsoleUrl('ec2', region)
53+
const url = getAwsConsoleUrl('ec2-launch', region)
5454
await openUrl(url)
5555
}
5656

src/shared/awsConsole.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
import * as vscode from 'vscode'
77

8-
export function getAwsConsoleUrl(service: 'ecr' | 'cloudformation' | 'ec2', region: string): vscode.Uri {
8+
export function getAwsConsoleUrl(service: 'ecr' | 'cloudformation' | 'ec2-launch', region: string): vscode.Uri {
99
switch (service) {
1010
case 'ecr':
1111
return vscode.Uri.parse(`https://${region}.console.aws.amazon.com/ecr/repositories?region=${region}`)
1212
case 'cloudformation':
1313
return vscode.Uri.parse(`https://${region}.console.aws.amazon.com/cloudformation/home?region=${region}`)
14-
case 'ec2':
14+
case 'ec2-launch':
1515
return vscode.Uri.parse(
1616
`https://${region}.console.aws.amazon.com/ec2/home?region=${region}#LaunchInstances:`
1717
)

0 commit comments

Comments
 (0)