aws-samples / sagemaker-ssh-helper

A helper library to connect into Amazon SageMaker with AWS Systems Manager and SSH (Secure Shell)
MIT No Attribution
222 stars 32 forks source link

Enable advanced-instances tier to use Session Manager with your on-premises instances #44

Closed marti-jorda-roca closed 5 months ago

marti-jorda-roca commented 11 months ago

Hi when I configure my local connection to Sagemaker Studio with:

sm-local-ssh-ide connect <my kernel gateway>

The process fails in the last step with the following error:

An error occurred (BadRequest) when calling the StartSession operation: Enable advanced-instances tier to use Session Manager with your on-premises instances
Connection closed by UNKNOWN port 65535

What is happening here?

ivan-khvostishkov commented 11 months ago

Hi, @marti-jorda-roca , have you checked the Setting up your AWS account with IAM and SSM configuration doc?

If you follow the manual setup, you have to enable the advanced instances tier:

Manual setup

  1. Setup Systems Manager (SSM)
ivan-khvostishkov commented 5 months ago

@marti-jorda-roca I'm closing this issue for now. Please reopen or create a new one if you need further guidance.

Btw, the new version v2.2.0 has been just published and I recommend to look into the new sm-ssh tool.