This is the arcitecture of the project
firstally created vpc with 2 public and 2 private subnets
Crated the EC2 Instances in private subnet using autoscalling group
Now crated new baston-host ec2 server to access the the our EC2 servers which are located in private subnet
Added load balancer to access private instances and also divert the traffic flow from one instance to another instance
Now copying the key from local host to the baston host using secure copy command of linux
scp -i /C/Users/Yeshwant/Downloads/BASTION_HOST.pem(this the identity file) /C/Users/Yeshwant/Downloads/Auto_scalling.pem ubuntu@13.232.185.72:/home/ubuntu
Deployed the simple python web application on port 8000 on private server(EC2)
Finally able to access the webpage using load balancer DNS