The question you should ask is - how do I make my application HA on AWS, not how do I make EC2 HA. And the short answer is that you must tell AWS how you define and deploy your application first.
In the case of RDS, it is abundantly clear what the application is - it is the database server of your choice. At the most basic, AWS can setup an HA instance of RDS with default settings without much input from you.
However, in the case of your application, you need to give AWS more details. There are several ways to do this:
- create an ELB with a bunch of EC2 instances in different availability zones
- create an ELB with an auto-scaling group which will lead you down the path of creating an AMI and a launch configuration; in this mode, you can even tell ASG to use the ELB health check to determine when an EC2 instance is no longer healthy
- you didn't mention what your application is, but you might want to get CodeDeploy involved to tell AWS how to deploy latest code to a newly spun up EC2 instance; CodeDeploy works well in tandem with ELB and ASG
- instead of defining the above components individually, you could define them together in an Elastic Beanstalk; this is the determination you'll have to make on your own - do you want more flexibility by defining individual components on your own, should you simplify things and use EB?
- lastly, if you use Docker and you can dockerize your applications or different components of the same application, AWS supports EB with multi-container docker
Whichever route you decide, AWS CloudFormation templates are a good way to tie everything together and define your stack. One advantage of this is whenever you need to make a change in your stack, you'll change your CloudFormation template, apply the change and let AWS figure out what the dependencies are, what order to update them and how.