Interview Prep/DevSecOps/Cloud Security Posture

How do you replace bastion hosts and VPN for admin access to servers?

IntermediateProductionCloud Security Posture
Answer

Use AWS Systems Manager Session Manager: no inbound ports, access controlled by IAM, full session logging to S3 or CloudWatch.

aws ssm start-session --target i-0abc123
aws ssm start-session --target i-0abc123 \
  --document-name AWS-StartPortForwardingSessionToRemoteHost \
  --parameters host=db.internal,portNumber=5432,localPortNumber=5432

For web apps and internal tools, use an identity-aware proxy (AWS Verified Access, Cloudflare Access, Google IAP) that checks identity and device posture per request. Both remove the shared network trust that VPNs and bastions create.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Cloud Security Posture