File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export async function rebootInstance(node?: Ec2Node) {
50
50
51
51
export async function linkToLaunchInstance ( node ?: Ec2Node ) {
52
52
const region = node ? node . regionCode : globals . regionProvider . guessDefaultRegion ( )
53
- const url = getAwsConsoleUrl ( 'ec2' , region )
53
+ const url = getAwsConsoleUrl ( 'ec2-launch ' , region )
54
54
await openUrl ( url )
55
55
}
56
56
Original file line number Diff line number Diff line change 5
5
6
6
import * as vscode from 'vscode'
7
7
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 {
9
9
switch ( service ) {
10
10
case 'ecr' :
11
11
return vscode . Uri . parse ( `https://${ region } .console.aws.amazon.com/ecr/repositories?region=${ region } ` )
12
12
case 'cloudformation' :
13
13
return vscode . Uri . parse ( `https://${ region } .console.aws.amazon.com/cloudformation/home?region=${ region } ` )
14
- case 'ec2' :
14
+ case 'ec2-launch ' :
15
15
return vscode . Uri . parse (
16
16
`https://${ region } .console.aws.amazon.com/ec2/home?region=${ region } #LaunchInstances:`
17
17
)
You can’t perform that action at this time.
0 commit comments