Keeping AWS API Gateway-Rest APIs on Sync for multi-region

126 Views Asked by At

In our project we are using 2 regions (Oregon, N.virginia) one for Production and other for DR(Disaster recovery) site, we have the same Rest APIs over both regions, but the overhead arives when we have any update for the APIs we need to update on both sites. Is there any method for synchronizing both APIs in different regions.

Currently, We are exporting the Rest APIs in JSON format and importing to other region on a timely basis. I want to know if there any way to automate this process or other way for syncing both APIs.

1

There are 1 best solutions below

2
On

My first thought is to write a script of CLI commands to do this whole export and import procedure. That way you minimize manual work and standardize it. I will encounter this same problem in production after a awhile.