Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mesh initial commit #320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
Loading