Skip to content

Commit

Permalink
Merge pull request #7948 from ministryofjustice/TM-520
Browse files Browse the repository at this point in the history
TM-520 Update vault to be testing EFS backup in STG cutover
  • Loading branch information
vc13837 authored Sep 27, 2024
2 parents 30a0b12 + e9bfe5c commit 7f6f648
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 6 additions & 3 deletions terraform/environments/apex/application_variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"alb_elb_5xx_alarm_threshold": "10",
"alb_target_4xx_alarm_threshold": "10",
"alb_elb_4xx_alarm_threshold": "10",
"oas_lz_cidr": "10.202.4.85/32"
"oas_lz_cidr": "10.202.4.85/32",
"lz_account_id": "411213865113"
},
"test": {
"ec2amiid": "ami-00b96c3ab7b1106b4",
Expand Down Expand Up @@ -98,7 +99,8 @@
"alb_elb_5xx_alarm_threshold": "10",
"alb_target_4xx_alarm_threshold": "10",
"alb_elb_4xx_alarm_threshold": "10",
"oas_lz_cidr": "10.206.4.156/32"
"oas_lz_cidr": "10.206.4.156/32",
"lz_account_id": "140455166311"
},
"preproduction": {
"ec2amiid": "ami-0cbc8c735c4f995b2",
Expand Down Expand Up @@ -147,7 +149,8 @@
"alb_elb_5xx_alarm_threshold": "10",
"alb_target_4xx_alarm_threshold": "10",
"alb_elb_4xx_alarm_threshold": "10",
"oas_lz_cidr": "10.206.4.156/32"
"oas_lz_cidr": "10.206.4.156/32",
"lz_account_id": "484221692666"
},
"production": {
"example_var": "production-data",
Expand Down
6 changes: 1 addition & 5 deletions terraform/environments/apex/backups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
## Resources here can be removed after data migration
############################################################################

locals {
lz_account_id = "411213865113"
}

resource "aws_backup_vault" "apex" {
name = "${local.application_name}-backup-vault"
tags = merge(
Expand Down Expand Up @@ -44,7 +40,7 @@ data "aws_iam_policy_document" "apex" {

principals {
type = "AWS"
identifiers = ["arn:aws:iam::${local.lz_account_id}:root"]
identifiers = ["arn:aws:iam::${local.application_data.accounts[local.environment].lz_account_id}:root"]
}

actions = [
Expand Down

0 comments on commit 7f6f648

Please sign in to comment.