...
/Bastion Hosts and EC2 Instance Connect Endpoint
Bastion Hosts and EC2 Instance Connect Endpoint
Learn about the Bastion hosts and EC2 Instance Connect Endpoint and their usefulness.
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 ...