I'm new to AWS and currently using a single m1.medium EC2 instance to run an application. I've been reading up on AWS terminology, but there's one thing I haven't gotten a clear answer on. I know how to launch instances from the EC2 console, but how can I launch another EC2 instance and associate it with the one I currently have an application running on? Or am I entirely misunderstanding how this works?
I've read that the load balancer will add/remove instances according to performance, but since my domain name is associated to one IP address/instance, how do I get I the other instances to "point" to my application?
I guess my confusion stems from this example
As an example, a medium-sized website running on 10 Amazon EC2 instances in the US East (N. Virginia) Region could use one Elastic Load Balancer to balance incoming traffic. If the Elastic Load Balancer ended up transferring 100 GB of data over a 30 day period, the monthly charge would amount to $18 (or $0.025 per hour x 24 hours per day x 30 days x 1 Elastic Load Balancer) for the Elastic Load Balancer hours and $0.80 (or $0.008 per GB x 100 GB) for the data transferred through the Elastic Load Balancer, for a total monthly charge of $18.80.
How do you get an application to run 10 instances? Ok, so you create 10 instances, how does it know those aren't 10 different environments?