Creating VPC, NAT Gateway, Public & Private Subnetes, Internet Gateway, EIP, EC2 Server along with user data, and Security Group Using the Cloud Formation Template.
In the above environment, we are hosting one server in public subnet and one in private subnet.
Public subnet servers acts as bastion host. And Private subnet server acts as main host.