Skip to content

Commit

Permalink
Merge pull request #1538 from ministryofjustice/MLPAB-2539-backup-pla…
Browse files Browse the repository at this point in the history
…n-fix

MLPAB-2539 - Fix backup plans on path to live
  • Loading branch information
andrewpearce-digital authored Oct 8, 2024
2 parents 41a1c15 + 42b22a8 commit ce4bbeb
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 7 deletions.
15 changes: 15 additions & 0 deletions terraform/account/backup_vaults.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module "aws_backup_vaults_eu_west_1" {
source = "./modules/aws_backup_vault"
providers = {
aws.region = aws.eu_west_1
aws.global = aws.global
}
}

module "aws_backup_vaults_eu_west_2" {
source = "./modules/aws_backup_vault"
providers = {
aws.region = aws.eu_west_2
aws.global = aws.global
}
}
20 changes: 20 additions & 0 deletions terraform/account/refactoring.tf
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,23 @@ moved {
from = aws_backup_vault.eu_west_1
to = module.eu_west_1[0].module.aws_backup_vaults.aws_backup_vault.main
}

moved {
from = module.eu_west_1[0].module.aws_backup_vaults.aws_backup_vault.main
to = module.aws_backup_vaults_eu_west_1.aws_backup_vault.main
}

moved {
from = module.eu_west_1[0].module.aws_backup_vaults.aws_backup_vault_notifications.aws_backup_failure_events
to = module.aws_backup_vaults_eu_west_1.aws_backup_vault_notifications.aws_backup_failure_events
}

moved {
from = module.eu_west_1[0].module.aws_backup_vaults.aws_sns_topic.aws_backup_failure_events
to = module.aws_backup_vaults_eu_west_1.aws_sns_topic.aws_backup_failure_events
}

moved {
from = module.eu_west_1[0].module.aws_backup_vaults.aws_sns_topic_policy.aws_backup_failure_events
to = module.aws_backup_vaults_eu_west_1.aws_sns_topic_policy.aws_backup_failure_events
}
7 changes: 0 additions & 7 deletions terraform/account/region/backup_vaults.tf

This file was deleted.

0 comments on commit ce4bbeb

Please sign in to comment.