Skip to content

Commit

Permalink
TM-851 Build out prod mail relay resources
Browse files Browse the repository at this point in the history
  • Loading branch information
vc13837 committed Jan 2, 2025
1 parent 65e652a commit 9786cf5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
22 changes: 11 additions & 11 deletions terraform/environments/laa-mail-relay/ses.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9786cf5

Please sign in to comment.