From 9786cf5b93ebde2196f1ab466d087975ed87f6b2 Mon Sep 17 00:00:00 2001 From: "Vincent.Cheung" Date: Thu, 2 Jan 2025 15:10:30 +0000 Subject: [PATCH] TM-851 Build out prod mail relay resources --- .../laa-mail-relay/application_variables.json | 5 ++++- terraform/environments/laa-mail-relay/ses.tf | 22 +++++++++---------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/terraform/environments/laa-mail-relay/application_variables.json b/terraform/environments/laa-mail-relay/application_variables.json index 14baade35dc..b0cf69af085 100644 --- a/terraform/environments/laa-mail-relay/application_variables.json +++ b/terraform/environments/laa-mail-relay/application_variables.json @@ -13,7 +13,10 @@ "example_var": "preproduction-data" }, "production": { - "example_var": "production-data" + "env_short": "prod", + "smtp_ami_id": "ami-07c2c2bf769d5174d", + "smtp_instance_type": "t2.large", + "old_mail_server_url": "mail.aws.prd.legalservices.gov.uk" } } } diff --git a/terraform/environments/laa-mail-relay/ses.tf b/terraform/environments/laa-mail-relay/ses.tf index a18aafc99f6..79bbf5e8a48 100644 --- a/terraform/environments/laa-mail-relay/ses.tf +++ b/terraform/environments/laa-mail-relay/ses.tf @@ -141,20 +141,20 @@ resource "aws_secretsmanager_secret" "smtp_sesrsa" { ## TODO Create Kinesis Data Firehose and IAM role for Production, then enable below to set event destination -resource "aws_sesv2_configuration_set" "postfix" { - count = contains(["production"], local.environment) ? 1 : 0 - configuration_set_name = "${local.application_name}-configuration-set" +# resource "aws_sesv2_configuration_set" "postfix" { +# count = contains(["production"], local.environment) ? 1 : 0 +# configuration_set_name = "${local.application_name}-configuration-set" - delivery_options { - tls_policy = "OPTIONAL" - } +# delivery_options { +# tls_policy = "OPTIONAL" +# } - reputation_options { - reputation_metrics_enabled = true - } +# reputation_options { +# reputation_metrics_enabled = true +# } - tags = local.tags -} +# tags = local.tags +# } # resource "aws_sesv2_configuration_set_event_destination" "postfix" { # configuration_set_name = aws_sesv2_configuration_set.postfix.configuration_set_name