Bastion Hosts and EC2 Instance Connect Endpoint
Explore how to securely connect to private EC2 instances using bastion hosts and EC2 Instance Connect Endpoint. Understand the risks of bastion hosts and how EC2 Instance Connect Endpoint improves security by removing the need for public access and simplifying network configurations.
Bastion hosts
A bastion host allows an
EC2 instance is used as a bastion host and must be provisioned in a public subnet. The security group of the bastion host must allow SSH connections to the EC2 instances in the private subnets.
Note: The security group of the bastion host must be restricted as much as possible to prevent incoming traffic from unwanted sources to avoid hacking attacks.
Drawbacks of bastion hosts
Despite the usage of a bastion host, using it as a main component for exposing private resources to the internet is not recommended. Below are a few reasons that make the bastion host less secure and more prone to attacks.
A bastion host is ...