Day 44: Relational Database Service in AWS ๐
Exploring Amazon Relational Database Service (Amazon RDS) ๐
Amazon Relational Database Service (Amazon RDS) is like having your own personal database guru in the cloud. It simplifies the task of setting up, operating, and scaling relational databases, allowing you to focus on building your application without worrying about the nitty-gritty details of database management. ๐ ๏ธ
Task 01: Setting up EC2 and RDS Instances in AWS ๐ ๏ธ
Step 1: Create an EC2 instance
๐ Go to the Amazon EC2 console.
๐ฑ๏ธ Click "Launch Instance".
๐ก๏ธ Choose a Ubuntu AMI.
๐ป Choose an instance type, such as t2.micro.
๐ Choose a VPC and subnet.
๐ก๏ธ Configure security group rules to allow inbound traffic on the appropriate port for the type of database you are using (e.g. port 3306 for MySQL).
๐ Launch the instance.
Step 2: Create a Free Tier RDS instance of MySQL
๐ Go to the Amazon RDS console.
๐ฑ๏ธ Click "Create database".
๐๏ธ Select "MySQL" as the engine type.
๐ Choose the "Free tier" template for "DB instance class".
๐ Enter a unique name for the "DB instance identifier".
๐ค Set the "Master username" and "Master password" for the database.
๐ Set the "Virtual Private Cloud (VPC)" and "Subnet group" to create the instance in.
๐ Leave the other settings at their default values.
๐ก๏ธ Select ec2-instance for "VPC security group".
๐ Click "Create database" to start the instance creation.
โ Database is created.
Step 3: Create an IAM role with RDS access
๐ Go to the IAM console.
๐ฑ๏ธ Click "Roles".
โ Click "Create role".
๐ Choose the 'AWS service'.
๐ ๏ธ Choose "Allows EC2 instances to call AWS services on your behalf".
๐ Attach the "AmazonRDSFullAccess" policy.
๐ Enter a unique name for the role.
โ Click "Create role".
โ Role is created.
Step 4: Assign the role to EC2
๐ Go to the EC2 console.
๐ Select the instance you just created.
๐ฑ๏ธ Click "Actions", then "Instance Settings", then "Attach/Replace IAM Role".
Continuing our DevOps, we turn our attention to the enchanting world of WordPress, where our EC2 instance awaits its transformation into a digital canvas for creativity and innovation. Powered by the steadfast reliability of MySQL RDS, our journey takes an exhilarating turn as we embark on the setup of WordPress. ๐
Subscribe to my newsletter
Read articles from Nilkanth Mistry directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Nilkanth Mistry
Nilkanth Mistry
Embark on a 90-day DevOps journey with me as we tackle challenges, unravel complexities, and conquer the world of seamless software delivery. Join my Hashnode blog series where we'll explore hands-on DevOps scenarios, troubleshooting real-world issues, and mastering the art of efficient deployment. Let's embrace the challenges and elevate our DevOps expertise together! #DevOpsChallenges #HandsOnLearning #ContinuousImprovement