diff --git a/terraform/account/backup_vaults.tf b/terraform/account/backup_vaults.tf new file mode 100644 index 0000000000..34d1f18c44 --- /dev/null +++ b/terraform/account/backup_vaults.tf @@ -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 + } +} diff --git a/terraform/account/region/modules/aws_backup_vault/data_sources.tf b/terraform/account/modules/aws_backup_vault/data_sources.tf similarity index 100% rename from terraform/account/region/modules/aws_backup_vault/data_sources.tf rename to terraform/account/modules/aws_backup_vault/data_sources.tf diff --git a/terraform/account/region/modules/aws_backup_vault/main.tf b/terraform/account/modules/aws_backup_vault/main.tf similarity index 100% rename from terraform/account/region/modules/aws_backup_vault/main.tf rename to terraform/account/modules/aws_backup_vault/main.tf diff --git a/terraform/account/region/modules/aws_backup_vault/versions.tf b/terraform/account/modules/aws_backup_vault/versions.tf similarity index 100% rename from terraform/account/region/modules/aws_backup_vault/versions.tf rename to terraform/account/modules/aws_backup_vault/versions.tf diff --git a/terraform/account/refactoring.tf b/terraform/account/refactoring.tf index b6892c164c..d594465475 100644 --- a/terraform/account/refactoring.tf +++ b/terraform/account/refactoring.tf @@ -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 +} diff --git a/terraform/account/region/backup_vaults.tf b/terraform/account/region/backup_vaults.tf deleted file mode 100644 index 7b53628b6e..0000000000 --- a/terraform/account/region/backup_vaults.tf +++ /dev/null @@ -1,7 +0,0 @@ -module "aws_backup_vaults" { - source = "./modules/aws_backup_vault" - providers = { - aws.region = aws.region - aws.global = aws.global - } -}