Skip to content

Commit 70a161d

Browse files
committed
initial code
1 parent 9eed7ce commit 70a161d

File tree

4 files changed

+2
-29
lines changed

4 files changed

+2
-29
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,11 @@
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-
271
module "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

infra/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)