Going Bastion-less - Accessing Private EC2 instance with Session Manager

In this post we will set up a private EC2 instance (in a private subnet), and use SSM session manager to access the instance that hosts a Jupyter Notebook server.

In this post we will set up a private EC2 instance (in a private subnet), and use SSM session manager to access the instance that hosts a Jupyter Notebook server. We will then use PostForwarding with AWS Session Manager to access our server from our local machine.

We’ll set up this infrastructure without opening inbound ports or setting up bastion hosts or managing SSH keys!.

Bastion Host architecture in order to access the private instance. Designed using Lucid.app

You can check the full blog post on my Medium at Towards Data Science: Going Bastion-less: Accessing Private EC2 instance with Session Manager