- - -
- -
-
-

What is RDS?

Simple Definition: Rather than having a database stored on a local file, the RDS database is stored on the cloud.

-

Further Research/More Information:

    -
  • RDS: Relational Database Service
      -
    • a web service provided by Amazon Web Services (AWS) that allows individuals to set up, operate, and scale a database while storing it in the cloud
    • -
    • RDS makes it easy to set up, operate, and scale a MySQL database instance in the case of AP Computer Science at Del Norte High Schools
    • -
    -
  • -
-
    -
  • By using RDS, individuals can offload the administrative tasks of database management

    -
      -
    • examples: hardware provisioning, software patching, backups, and database scaling, to AW
    • -
    • RDS takes care of the underlying infrastructure allowing more time to work on website features
    • -
    -
  • -
  • Key Features and Benefits of RDS:

    -
      -
    • Managed service: AWS manages the infrastructure, database setup, patching, and backups, reducing your administrative burden.
    • -
    • Scalability: RDS allows you to scale your database instance up or down based on a users needs, which ensures efficiency
    • -
    • Security: RDS provides built-in security features, such as encryption at rest and in transit, network isolation, and user access control
    • -
    • Automated software patching: RDS can automatically apply patches and updates to the database software, reducing downtime and ensuring security.
    • -
    • Stores information in the cloud instead of just locally --> can not be easily deleted and ruined
    • -
    -
  • -
-
    -
  • Overall Takeaway:
      -
    • RDS simplifies the process of deploying and managing relational databases, making it a popular choice for many organizations seeking a scalable and reliable database solution in the cloud
    • -
    -
  • -
-

Even More Information

- -
-
-
-
-
-

Step 1: Create an EC2 Instance

Create an Amazon EC2 instance that you will use to connect to your database.

-

To create an EC2 instance

-
    -
  1. Sign in to the AWS Management Console and open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
  2. -
  3. In the upper-right corner of the AWS Management Console, choose the AWS Region in which you want to create the EC2 instance.
  4. -
  5. Choose EC2 Dashboard, and then choose Launch instance, as shown in the following image (The Launch an instance page opens)
  6. -
  7. Choose the following settings on the Launch an instance page.

    -
      -
    • Under Name and tags, for Name, enter ec2-database-connect.
    • -
    • Under Application and OS Images (Amazon Machine Image), choose Amazon Linux, and then choose the Amazon Linux 2023 AMI. Keep the default selections for the other choices.)
    • -
    • Under Instance type, choose t2.micro.
    • -
    • Under Key pair (login), choose a Key pair name to use an existing key pair. To create a new key pair for the Amazon EC2 instance, choose Create new key pair and then use the Create key pair window to create it.
    • -
    • For Allow SSH traffic in Network settings, choose the source of SSH connections to the EC2 instance.

      -
        -
      • Note: You can choose My IP if the displayed IP address is correct for SSH connections. Otherwise, you can determine the IP address to use to connect to EC2 instances in your VPC using Secure Shell (SSH). To determine your public IP address, in a different browser window or tab, you can use the service at https://checkip.amazonaws.com. An example of an IP address is 192.0.2.1/32.
      • -
      • In many cases, you might connect through an internet service provider (ISP) or from behind your firewall without a static IP address. If so, make sure to determine the range of IP addresses used by client computers.
      • -
      -
        -
      • WARNING: If you use 0.0.0.0/0 for SSH access, you make it possible for all IP addresses to access your public EC2 instances using SSH. This approach is acceptable for a short time in a test environment, but it's unsafe for production environments. In production, authorize only a specific IP address or range of addresses to access your EC2 instances using SSH.

        -
      • -
      • Example for Network Settings Section: -insert image here

        -
      • -
      • Leave the default values for the remaining sections.

        -
      • -
      • Review a summary of your EC2 instance configuration in the Summary panel, and when you're ready, choose Launch instance.
      • -
      -
    • -
    -
  8. -
  9. On the Launch Status page, note the identifier for your new EC2 instance, for example: i-1234567890abcdef0. -insert image here

    -
  10. -
  11. Choose the EC2 instance identifier to open the list of EC2 instances, and then select your EC2 instance.

    -
  12. -
  13. In the Details tab, note the following values, which you need when you connect using SSH:

    -
      -
    • In Instance summary, note the value for Public IPv4 DNS. -insert image here

      -
    • -
    • In Instance details, note the value for Key pair name. -insert image here

      -
    • -
    -
  14. -
  15. Wait until the Instance state for your EC2 instance has a status of Running before continuing.

    -
  16. -
- -
-
-
-
- - - -