How do you automate failover on EC2?

Well, I don’t mean to just state the obvious, but the general idea is to push this complexity into the services managed by Amazon. So on the frontend, you would use Amazon Elastic Load Balancing (ELB) to provide highly available load balancing. On the rear end, you use Amazon Relational Database Service (hosted MySQL), SimpleDB, … Read more

How to use Amazon Elastic IP?

An EBS-backed instance can be “stopped” as opposed to being “terminated”. You won’t pay server charges, just storage charges for the EBS boot volume. You can “start” the server again later and all boot volume data will still be there. If, however, the server had an Elastic IP associated with it, that association will be … Read more

Launch instances via Elastic Beanstalk without Elastic IP configured

When using the environment type “Single instance”, you always get an EIP. From Beanstalk developer guide, Environment Types: A single-instance environment contains one Amazon EC2 instance with an Elastic IP address. Disabling the “Associate Public IP Address” option does not have any effect. Switch to “Load-balancing, Autoscaling” Environment to get by without an EIP.

Static IP address for outgoing traffic from AWS autoscaling group

You need a NAT. This configuration is commonly used to support private subnets in VPC, there’s quite a detailed guide here. Once your VPC is configured to use the NAT instance all the outbound traffic will be attributed to the EIP of the NAT instance. If so, does that instance need to be solely for … Read more