Skip to content

Commit

Permalink
fix: remove unneccessary var
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgadgi committed Jul 28, 2023
1 parent 761fae5 commit 6918255
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 29 deletions.
2 changes: 0 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -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."
}
26 changes: 1 addition & 25 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand All @@ -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 = ""
Expand Down Expand Up @@ -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."
}
}

0 comments on commit 6918255

Please sign in to comment.