Interview Prep/Networking/VPC & Cloud Network Design

Why use SSM Session Manager instead of a bastion host?

BeginnerScenarioVPC & Cloud Network Design
Answer

Situation read → Bastions are a long-lived internet-facing attack surface; SSM removes the open port.

What I'd do →

  1. Attach an instance profile with AmazonSSMManagedInstanceCore
  2. Ensure the instance can reach SSM through NAT or the interface endpoints ssm, ssmmessages, ec2messages
  3. Connect with aws ssm start-session --target i-0abc
  4. Enable session logging to S3 or CloudWatch for audit
  5. Port forward with aws ssm start-session --document-name AWS-StartPortForwardingSession

Why → No inbound port 22, no key distribution, and every session is authenticated by IAM and logged.

Interview tip → Say you still keep a break-glass path documented for when SSM itself is down.

All Networking questions Roadmap: Networking for DevOps

More on VPC & Cloud Network Design