Skip to content

Commit

Permalink
Mesh initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkr-22 committed Jan 8, 2025
1 parent 6e26501 commit 850c217
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
24 changes: 24 additions & 0 deletions terraform/mesh/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5"
}
}
}

module "mesh" {
source = "git::https://github.com/nhsdigital/terraform-aws-mesh-client.git//module?ref=v2.1.5"

name_prefix = "${var.environment}-immunisation"
mesh_env = "local"
subnet_ids = data.aws_subnets.default.ids

mailbox_ids = ["X26OT302", "X26OT303"]
verify_ssl = false

get_message_max_concurrency = 10
compress_threshold = 1 * 1024 * 1024

account_id = data.aws_caller_identity.current.account_id
}
52 changes: 52 additions & 0 deletions terraform/mesh/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
variable "environment" {
type = string
description = "Environment name (dev/staging/prod)"
}

variable "project_name" {
type = string
description = "Name of the project"
}

variable "mesh_module_version" {
type = string
description = "Version of the NHS MESH module to use"
}

variable "mesh_env" {
type = string
description = "MESH environment (local/production/integration)"
}

variable "subnet_ids" {
type = list(string)
description = "List of subnet IDs"
}

variable "mailbox_ids" {
type = list(string)
description = "List of MESH mailbox IDs"
}

variable "verify_ssl" {
type = bool
description = "Whether to verify SSL"
default = true
}

variable "get_message_max_concurrency" {
type = number
description = "Maximum concurrency for getting messages"
default = 10
}

variable "compress_threshold" {
type = number
description = "Compression threshold in bytes"
default = 1048576 # 1MB
}

variable "account_id" {
type = string
description = "Account ID"
}

0 comments on commit 850c217

Please sign in to comment.