File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -94,19 +94,6 @@ export class Ec2ConnectionManager {
94
94
throw new ToolkitError ( generalErrorMessage + message , errorInfo )
95
95
}
96
96
97
- private async pollForPermissions ( roleArn : string ) : Promise < void > {
98
- const timeout = new Timeout ( - 1 )
99
- await showMessageWithCancel ( `Adding inline policy to IAM role ${ roleArn } ` , timeout )
100
- while ( ! timeout . completed ) {
101
- const permissionsAdded = await this . hasProperPermissions ( roleArn )
102
- if ( permissionsAdded ) {
103
- break
104
- }
105
- await sleep ( 1000 )
106
- }
107
- timeout . cancel ( )
108
- }
109
-
110
97
private async checkForInstanceStatusError ( selection : Ec2Selection ) : Promise < void > {
111
98
const isInstanceRunning = await this . isInstanceRunning ( selection . instanceId )
112
99
You can’t perform that action at this time.
0 commit comments