Skip to content

Commit 53d3973

Browse files
committed
remove cloned method
1 parent a8e4860 commit 53d3973

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

packages/core/src/shared/remoteSession.ts

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ import { pushIf } from './utilities/collectionUtils'
2020
import { ChildProcess } from './utilities/processUtils'
2121
import { findSshPath, getVscodeCliPath } from './utilities/pathFind'
2222
import { IamClient } from './clients/iamClient'
23-
import { IAM, SSM } from 'aws-sdk'
23+
import { IAM } from 'aws-sdk'
2424
import { getIdeProperties } from './extensionUtilities'
25-
import { Ec2Selection } from '../awsService/ec2/prompter'
26-
import { sshLogFileLocation } from './sshConfig'
2725

2826
const policyAttachDelay = 5000
2927

@@ -253,21 +251,3 @@ export async function getDeniedSsmActions(client: IamClient, roleArn: string): P
253251

254252
return deniedActions
255253
}
256-
257-
export function getEc2SsmEnv(
258-
selection: Ec2Selection,
259-
ssmPath: string,
260-
session: SSM.StartSessionResponse
261-
): NodeJS.ProcessEnv {
262-
return Object.assign(
263-
{
264-
AWS_REGION: selection.region,
265-
AWS_SSM_CLI: ssmPath,
266-
LOG_FILE_LOCATION: sshLogFileLocation('ec2', selection.instanceId),
267-
STREAM_URL: session.StreamUrl,
268-
SESSION_ID: session.SessionId,
269-
TOKEN: session.TokenValue,
270-
},
271-
process.env
272-
)
273-
}

0 commit comments

Comments
 (0)