Skip to content

Commit

Permalink
TM-851 Updated aws_sesv2_email_identity and uncomment config set
Browse files Browse the repository at this point in the history
  • Loading branch information
vc13837 committed Jan 2, 2025
1 parent 9786cf5 commit 882334e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions terraform/environments/laa-mail-relay/ses.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "aws_sesv2_email_identity" "postfix" {
email_identity = local.environment == "production" ? "tbc" : data.aws_route53_zone.external.name
email_identity = data.aws_route53_zone.external.name
configuration_set_name = local.environment == "production" ? aws_sesv2_configuration_set.postfix[0].configuration_set_name : null
dkim_signing_attributes {
next_signing_key_length = "RSA_1024_BIT"
Expand Down 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 882334e

Please sign in to comment.