How do you provide secure admin access to private instances?
BeginnerProductionVPC & Network Architecture
Answer
SSM Session Manager (no inbound ports, IAM-controlled, session logging to S3 or CloudWatch) with port forwarding for databases, or EC2 Instance Connect Endpoint. A bastion is the fallback, hardened and behind MFA or short-lived certificates.
aws ssm start-session --target i-0abc --document-name AWS-StartPortForwardingSession --parameters '{"portNumber":["5432"],"localPortNumber":["5433"]}'
More on VPC & Network Architecture
How would you design a production VPC for a three-tier web application?IntermediateHow many AZs and subnets should a production VPC use, and why?BeginnerWhat makes a subnet public versus private?BeginnerHow do you avoid NAT gateway single points of failure and cross-AZ charges?IntermediateWhen should you use VPC endpoints?IntermediateHow do you design connectivity for 50+ VPCs across accounts and regions?Advanced