Skip to content

Commit b802c50

Browse files
committed
add necessary import
1 parent 1e91d7a commit b802c50

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/ec2/model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export class Ec2ConnectionManager {
129129

130130
if (!hasPermission) {
131131
const policiesAdded = await promptToAddPolicies(this.iamClient, IamRole!.Arn!)
132+
132133
if (!policiesAdded) {
133134
const message = `Did not add permissions. Ensure an IAM role with the proper permissions is attached to the instance. Found attached role: ${
134135
IamRole!.Arn

src/shared/remoteSession.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { pushIf } from './utilities/collectionUtils'
2121
import { ChildProcess } from './utilities/childProcess'
2222
import { IamClient } from './clients/iamClient'
2323
import { IAM } from 'aws-sdk'
24+
import { getIdeProperties } from './extensionUtilities'
2425

2526
export interface MissingTool {
2627
readonly name: 'code' | 'ssm' | 'ssh'
@@ -187,7 +188,9 @@ export async function getDeniedSsmActions(client: IamClient, roleArn: string): P
187188
}
188189

189190
export async function promptToAddPolicies(client: IamClient, roleArn: string): Promise<boolean> {
190-
const promptText = `${getIdeProperties().company} Toolkit will add required actions to role ${roleArn}:\n${getFormattedSsmActions()}`
191+
const promptText = `${
192+
getIdeProperties().company
193+
} Toolkit will add required actions to role ${roleArn}:\n${getFormattedSsmActions()}`
191194
const confirmation = await showConfirmationMessage({ prompt: promptText, confirm: 'Approve' })
192195

193196
if (confirmation) {

0 commit comments

Comments
 (0)