AWS Three-Tier Architecture - Part 3
π Table of Contents
π Database Deployment
πΉ Subnet Groups
- Open the RDS Dashboard in the AWS Management Console.
- On the left panel, navigate to Subnet Groups and click on Create DB Subnet Group.
- Provide a Name and Description for your subnet group.
- Select the VPC we created earlier.
- Add the subnets that were specifically created for the database layer in each Availability Zone.
- If needed, go back to the VPC Dashboard to verify the correct Subnet IDs.
πΉ Database Deployment
- In the RDS Dashboard, navigate to Databases on the left panel and click Create Database.
- Choose Standard Create for an Amazon Aurora MySQL-Compatible database.
- Keep the Engine options as default.
Under Templates, select Dev/Test (since this is not for production).
-
In Settings, set a Master Username and Password.
- Important: Note down these credentials, as they will be needed for database authentication.
- Under Availability and Durability, choose to create an Aurora Replica (reader node) in a different Availability Zone.
- In Connectivity:
- Set the VPC.
- Choose the Subnet Group we created earlier.
- Set Public Access to No.
Select the Security Group we created for the database layer.
Ensure Password Authentication is selected.
Click Create Database.
Once the database is provisioned, you should see a Reader and Writer instance in the database subnets of each Availability Zone.
- Note down the Writer Endpoint & Credential Details for future use.
β Conclusion
You have now successfully deployed the Database Layer of the AWS Three-Tier Architecture! π
π Continue to Part 4: AWS Three-Tier Architecture (Part 4)
----------------------------------------------------------------Database Deployment
Create DB Subnet Groups
Database Deployment
Create Database
View Connections details & Store the details.
Create Instance:
Launch Instance:
///After Finishing the AWS 3-Tier , Delete all the things created
Deleting DB
Delete NAT Gateway
Release Elastic IPs
Delete Internet Gateway
Delete Snapshots
Top comments (0)