What is the difference between EC2 and RDS in AWS?

EC2 is Elastic Compute Cloud and RDS is Relational database service.

You can’t differentiate them because they are not similar in any way. EC2 provides you with instances or servers. RDS gives you database endpoints.

EC2 can also be used for a lot of purposes:

  1. Host your website
  2. Run a MySQL server
  3. For backing up

You can use RDS for:

  1. Creating relational database engines
  2. You can choose between
  • MySQL
  • MariaDB
  • Oracle DB
  • PostgreSQL
  • MS SQL Server
  • Aurora DB