Day 44 Task: Relational Database Service in AWS
(Amazon RDS) is a collection of managed services that makes it simple to set up, operate, and scale databases in the cloud
Table of contents
Amazon Web Services (AWS) offers a managed relational database service called Amazon RDS (Relational Database Service). Amazon RDS makes it easier to set up, operate, and scale a relational database in the cloud. It supports several popular database engines, including MySQL, PostgreSQL, MariaDB, Oracle, and Microsoft SQL Server. Here are some key features and benefits of Amazon RDS:
Managed Service: AWS takes care of database administration tasks such as hardware provisioning, patching, backups, and database scaling. This allows you to focus on your application rather than the infrastructure.
Multiple Database Engines: You can choose from various database engines, allowing you to use the one that best fits your application's requirements.
Automated Backups: Amazon RDS automatically performs backups of your database. You can also configure the retention period for backups and perform point-in-time restores.
High Availability: Amazon RDS provides options for high availability, including Multi-AZ deployments, which replicate your database to a standby instance in a different Availability Zone. This helps ensure database availability even in the case of hardware or Availability Zone failures.
Scalability: You can easily scale your database instance vertically (by changing its instance type) or horizontally (by using read replicas) to handle increasing workloads.
Security: Amazon RDS offers various security features, including network isolation using Virtual Private Cloud (VPC), encryption at rest and in transit, and IAM-based authentication.
Monitoring and Metrics: AWS CloudWatch integration allows you to monitor the performance of your RDS instances and set up alarms for various metrics.
Maintenance and Patching: RDS takes care of applying database engine patches and performing routine maintenance tasks, reducing the operational burden on your team.
Automatic Failover: In Multi-AZ deployments, if the primary database instance fails, Amazon RDS automatically fails over to the standby instance, minimizing downtime.
Global Read Replicas: You can create read replicas in different AWS regions to offload read traffic from the primary database and provide low-latency access to data for users in different geographic locations.
Database Migration: Amazon RDS provides tools and services to help you migrate your existing on-premises databases or databases hosted on AWS to RDS.
Cost Management: With Amazon RDS, you pay only for the resources you consume, making it cost-effective as you can easily resize or terminate instances as needed.
Task-01
Create an EC2 instance.
Create a Free tier RDS instance of MySQL.
Select a free tier.
Make a Credentials setting.
Storage type.
Select Additional VPC security group.
Created database.
Create an IAM role with RDS access.
To create an IAM role go to IAM rolesSelect AWS services and use case EC2.
Add permissions AmazonRDSFullAccess.
Name, review, and create.
Role RDS-Role created.
Assign the role to EC2 so that your EC2 Instance can connect with RDS.
Now modify the IAM Role in the EC2 Instance.Choose your IAM Role.
Once the RDS instance is up and running, get the credentials and connect your EC2 instance using a MySQL client.
Go to RDS Console and select your database.Connect from your EC2 instance and update the system
Install MySQL by usingsudo apt-get install mysql-client
sudo apt-get install mysql-client
Now Connect your RDS instance to the EC2 instance using MySQL client.
usemysql -h <endpoint-name> -P <port-name> -u <username> -p
mysql -h database-1.ceqf6vz3swmx.us-east-1.rds.amazonaws.com -P 3306 -u admin -p
Happy Learning :)
If you find my blog valuable, I invite you to like, share, and join the discussion. Your feedback is immensely cherished as it fuels continuous improvement. Let's embark on this transformative DevOps adventure together! ๐ #devops #90daysofdevop #AWS