When Your Childhood Best Friend Becomes Taken Over by Greed

When I was in university I thought to myself, ”Is this a bridge worth burning?”. It was an easy decision to make. You had contacted me on Facebook messenger. You said you were in town for the first…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Creating an RDS DB Cross Region Replica in AWS using Terraform

So over the past week I’ve been scratching my head trying to figure out how to create a replica of my amazon aurora database in another region for DR purposes and deploying it via terraform.

The primary instance is located in us-east-1 and for our purposes, it was decided to create the DR replica in eu-west-1. Ireland is round the corner and things like the VPC and security-groups were already created.

I started off by creating a main.tf file which contained my two providers, one for the primary region (us-east-1) and another for the DR region (eu-west-1).

Adding the alias to the eu-west-1 provider allows us to reference it in the appropriate module later on.

In the same file, I added the two module blocks -

Check out the file structure below -

Let’s start with the primary cluster to which our application writes to and from where we source the data sent to the replica.

Couple of quick points -

Take a look at the DR side below -

If you need actual helpful stuff, go here -

Hope this helps!!

Add a comment

Related posts:

Consumer paralysis

I used to go ham getting discounted stuff on Black Friday. This year it feels a bit different. I still like going shopping, but it’s become difficult for me to pay for things without knowing the…

VIP Girl Easily distracted by garden and wine poster

The coach always encourages you to go to the gym every day because the bosses love it. If you’re considering buying an extra pair of sneakers to go to the gym, why not buy a pair of boots? Doctors…

August recap!

In case you missed out on August episodes of Voice of FinTech podcast, here is the monthly recap! You can listen to all the episodes on the Episodes pages of this website or when you subscribe to…