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: add case-specific errors for when instance is not running and when attached IAM invalid (#3587)
* 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
* improve style + start of work on debugging error
* make distinction between status error and permission error
* start to add tests for error handling
* 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
* fix formatting
* add test for error handling
* fix formatting
* add extra wrapper
* generalize some code to a remoteSession file
* add space between pieces
* retrieve IAM role attached to instance when fails to connect
* remove dead import
* refactor to avoid circular dependency
* checks if relevant policies are on attached role
* use both probes to determine source of error
* update tests
* change callback to async/await
* remove onError parameter and utilize .catch instead
* add test for permissions detection
* fix test
* 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
* fix outdated imports in the test
* bubble error up
* update test case
* Remove please in text
Co-authored-by: Justin M. Keyes <[email protected]>
* Remove please in text in other error
Co-authored-by: Justin M. Keyes <[email protected]>
* remove unnecessary types and update tests to match
* change name of test utility to match other examples
* remove `Error` from error code
* change default error message to be more concise.
Co-authored-by: Justin M. Keyes <[email protected]>
* change text in error message
Co-authored-by: Justin M. Keyes <[email protected]>
* change text on documentation button.
Co-authored-by: Justin M. Keyes <[email protected]>
* refactor instanceStatus functionality to be more direct
* add error to prevent friendlyName extracter from returning undefined
* add tests for getFriendlyName
* move variable to the end of message.
Co-authored-by: Justin M. Keyes <[email protected]>
---------
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