diff --git a/main.tf b/main.tf index 69c102c..6d1b117 100644 --- a/main.tf +++ b/main.tf @@ -5,9 +5,7 @@ locals { # some ses resources don't allow for the terminating '.' in the domain name # so use a replace function to strip it out - stripped_domain_name = replace(var.domain, "/[.]$/", "") stripped_mail_from_domain = replace(var.mail_from_domain, "/[.]$/", "") - dash_domain = replace(var.domain, ".", "-") } module "labels" { diff --git a/outputs.tf b/outputs.tf index 8b31fd2..caf394e 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,11 +1,11 @@ # Module : DOMAIN IDENTITY # Description : Terraform module to create domain identity using domain output "domain_identity_arn" { - value = join("", aws_ses_domain_identity.default.*.arn) + value = aws_ses_domain_identity.default[0].arn description = "ARN of the SES domain identity." } output "id" { - value = join("", aws_ses_domain_identity_verification.default.*.id) + value = try(aws_ses_domain_identity_verification.default[0].id, "") description = "The domain name of the domain identity." } \ No newline at end of file diff --git a/variables.tf b/variables.tf index da15281..50729b6 100644 --- a/variables.tf +++ b/variables.tf @@ -124,12 +124,6 @@ variable "zone_id" { description = "Route53 host zone ID to enable SES." } -variable "filter_name" { - type = string - default = "" - description = "The name of the filter." -} - variable "filter_cidr" { type = string default = "" @@ -142,18 +136,6 @@ variable "filter_policy" { description = "Block or Allow filter." } -variable "policy_name" { - type = string - default = "" - description = "Name of the policy." -} - -variable "template_name" { - type = string - default = "" - description = "The name of the template. Cannot exceed 64 characters. You will refer to this name when you send email." -} - variable "template_subject" { type = string default = "" @@ -188,10 +170,4 @@ variable "cname_type" { type = string default = "CNAME" description = "CNAME type for Record Set." -} - -variable "ses_records" { - type = list(string) - default = [] - description = "Additional entries which are added to the _amazonses record." -} +} \ No newline at end of file