Multi-az RDS Deployment
#week_six - multi-az RDS deployment
duration: 1 week
ForgTech company wanna test your ability to type down a clean code by Deploying the structure of resources. This will help you to build a good reputation.
The FrogTech Database team determined to migrate the local PostgreSQL Database to AWS RDS, They have tested/discovered the RDS functionality, Flaws, and parameter groups configuration.
Therefore, You’re requested to provision a Highly available Multi-az instance PostgreSQL RDS version >=15.*, The RDS Structure should be as primary and standby without read replica, besides creating a Jumper server “bastion host“ to allow the Database team to connect to The RDS. and consider the following requirement specifications:
- allocate storage as 20 i.e. avoiding high cost.
- instance_calss as db.t3.micro i.e. avoiding high cost.
- Deny public access.
- Both RDSs use the same Security group.
- Security Group allows inbound traffic for 5432 port from the bastion host only. and allows all outbound traffic.
- Set skip_final_snapshot as true.
After provisioning the required Resources, Check the user accessibility utilizing the pgAdmin application or Psql client command line from
the bastion host.
Use IaC Terraform to build all resources and consider the below requirements specifications.
- Resources must be created at the us-east-1 region.
- Store state file backend into S3.
- Resources must have common tags combination as below:
- Common tags:
- Key: “Environment”, Value: “terraformChamps”
- Key: “Owner”, Value: <“Your_first_name“>
Bonus
-
Build an Architecture diagram of the deployment resources.
-
Build a personal document consisting of what you learn with deep details and resources i.e. this will assist you to get back and refresh your knowledge later
- Store the backend into HCP instead.
- Apply & destroy using planfile.