ministryofjustice / modernisation-platform

A place for the core work of the Modernisation Platform • This repository is defined and managed in Terraform
https://user-guide.modernisation-platform.service.justice.gov.uk
MIT License
679 stars 290 forks source link

DR - Update MP modules to not be region specific #7146

Open davidkelliott opened 3 months ago

davidkelliott commented 3 months ago

User Story

As an MP user I want to be able to easily change module regions So that in a DR situation I can change the region without needing a new module release

Value / Purpose

To make changing regions during a DR scenario as easily as possible.

Useful Contacts

No response

Additional Information

See current DR guidance here which requires regions to be updated in all of our modules - https://user-guide.modernisation-platform.service.justice.gov.uk/runbooks/dr-process.html#repo-module-list

Proposal / Unknowns

Proposal

Update modules so that there is an input for the region. The default region should be eu-west-2 (or whatever the module currently uses) so that it isn't a breaking change.

This region can then be set once at a member account level and easily changed.

Definition of Done

dms1981 commented 1 month ago

This might just be a question of assessing what resources are region-specific, because the region to build a thing in is based on the provider, not a variable in a resource (generally!).

dms1981 commented 1 month ago

Further to my previous, the scope here is all of our modules. That's a lot of modules.