Interview Prep/AWS/VPC and Networking

Bastion host vs SSM Session Manager?

BeginnerConceptVPC and Networking
Answer

A bastion is a public EC2 you SSH through; it needs an open port, key management and patching. Session Manager uses the SSM agent over outbound HTTPS to the SSM service, requires no inbound ports or public IPs, authenticates through IAM, and logs sessions to CloudTrail, S3 or CloudWatch.

aws ssm start-session --target i-0abc123

For private instances you need NAT or the ssm, ssmmessages and ec2messages interface endpoints.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking