You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ec2: connect to terminal w/o error handling. (#3575)
* add empty connect command
* create sample QuickPick on click
* hacky prompt + func to list instanceId
* very hacky way to create prompt with instanceIds
* move extractInstanceIds to own function
* utilize lastTouchedRegion in prompt
* throw cancellationError on user cancel
* add a title to quickpick
* refactor: increase testability
* move test utility func to shared utility file
* add general test cases for extractInstanceIdsFromReservations
* add basic test for prompter
* configure command to devMode
* refactor to utilize wizard + integrate regionSubmenu
* add new testing file
* refactor to utilize regionSubmenu in isolation, rather than wrapped in Wizard class
* fix awkward indent
* add test file from feature/cwl branch
* remove old prompter old + tests
* delete tests that rely on feature/cwl changes
* refactor to avoid circular dependency
* fix improper headers + imports
* introduce Ec2ConnectClient to handle connection
* remove dead parameter
* close connection on terminal close
* add a little more to error msg
* remove dead imports
* log error to console
* rename function
Co-authored-by: Justin M. Keyes <[email protected]>
* fix header
Co-authored-by: Justin M. Keyes <[email protected]>
* fix headers and imports
* remove year from header
* delete outdated test case
* delete outdated test file
* remove year from copyright header
* fix formatting of files
* remove alias in Ec2Instance
* utilize interface for object-like shape
* move code to general Ec2Client
* change Log Groups to selection in region submenu
* refactor to avoid circular dependency
* fix formatting
* fix formatting
* comment out the ec2Client we are not using
* style fix
* generalize some code to a remoteSession file
* add space between pieces
* remove dead import
* refactor to avoid circular dependency
* change callback to async/await
* remove onError parameter and utilize .catch instead
* make error handling a try-catch
* avoid unnecessary default prefix on client name
Co-authored-by: Justin M. Keyes <[email protected]>
* fix old import
* refactor defaultEc2client -> ec2Client
* rename Ec2ConnectClient
---------
Co-authored-by: Justin M. Keyes <[email protected]>
"SSM: Failed to start session with target instance. Common reasons include: \n 1. SSM Agent not installed on instance. \n 2. The required IAM instance profile isn't attached to the instance. \n 3. Session manager setup is incomplete."
0 commit comments