File tree Expand file tree Collapse file tree 4 files changed +2
-29
lines changed
Expand file tree Collapse file tree 4 files changed +2
-29
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ updates:
7171 directories :
7272 - " /grafana/non-prod/terraform"
7373 - " /infra"
74- - " /mesh-infra"
7574 - " /terraform"
7675 - " /terraform_aws_backup/**"
7776 schedule :
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ See https://nhsd-confluence.digital.nhs.uk/display/APM/Glossary.
4545| ` terraform_old ` | Old tf code used to create INT to mimic prod. |
4646| ` terraform_sandbox ` | Sandbox environment for testing infrastructure changes. |
4747| ` terraform_aws_backup ` | Streamlined backup processing with AWS. |
48- | ` mesh-infra ` | Infrastructure setup for Imms batch MESH integration. |
4948| ` proxies ` | Apigee API proxy definitions. |
5049---
5150
Original file line number Diff line number Diff line change 1- terraform {
2- required_providers {
3- aws = {
4- source = " hashicorp/aws"
5- version = " ~> 6"
6- }
7- }
8- backend "s3" {
9- region = " eu-west-2"
10- key = " state"
11- }
12- required_version = " >= 1.5.0"
13- }
14-
15-
16-
17- data "aws_vpc" "default" {
18- default = true
19- }
20- data "aws_subnets" "default" {
21- filter {
22- name = " vpc-id"
23- values = [data . aws_vpc . default . id ]
24- }
25- }
26-
271module "mesh" {
282 source = " git::https://github.com/nhsdigital/terraform-aws-mesh-client.git//module?ref=v2.1.5"
293
304 name_prefix = " local-immunisation"
315 mesh_env = " integration"
326 subnet_ids = data. aws_subnets . default . ids
337
34- mailbox_ids = [" X26OT303 " ]
8+ mailbox_ids = [local . mesh_mailbox_id ]
359 verify_ssl = " true"
3610 get_message_max_concurrency = 10
3711 compress_threshold = 1 * 1024 * 1024
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ locals {
2121 account = terraform. workspace # non-prod or prod
2222 dspp_core_account_id = local. account == " prod" ? 232116723729 : 603871901111
2323 immunisation_account_id = local. account == " prod" ? 664418956997 : 345594581768
24+ mesh_mailbox_id = local. account == " prod" ? " prod-mesh-mailbox-id?" : " non-prod" ? " X26OT304" : " mystery-mailbox-id"
2425 # TODO - add new accounts for CDP migration
2526}
2627
You can’t perform that action at this time.
0 commit comments