diff --git a/_example/example.tf b/_example/example.tf index db6dc4d..ef23319 100644 --- a/_example/example.tf +++ b/_example/example.tf @@ -20,7 +20,6 @@ module "ses" { emails = [] zone_id = "XXXXXXXX69XB8J3IEP" - enable_verification = true - enable_mx = true - enable_spf_domain = true + enable_mx = true + enable_spf_domain = true } diff --git a/_example/versions.tf b/_example/versions.tf index f6a601f..7c8e539 100644 --- a/_example/versions.tf +++ b/_example/versions.tf @@ -1,11 +1,11 @@ # Terraform version terraform { - required_version = ">= 1.6.1" + required_version = ">= 1.6.5" required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.21.0" + version = ">= 5.30.0" } } -} \ No newline at end of file +} diff --git a/main.tf b/main.tf index 9b7fe9b..fadeca0 100644 --- a/main.tf +++ b/main.tf @@ -33,29 +33,6 @@ resource "aws_ses_email_identity" "default" { email = var.emails[count.index] } -###DNS VERIFICATION####### - -#Module : DOMAIN IDENTITY VERIFICATION -#Description : Terraform module to verify domain identity using domain -resource "aws_ses_domain_identity_verification" "default" { - count = var.enabled && var.enable_domain && var.enable_verification ? 1 : 0 - - domain = aws_ses_domain_identity.default[count.index].id - depends_on = [aws_route53_record.ses_verification] -} - -#Module : DOMAIN IDENTITY VERIFICATION ROUTE53 -#Description : Terraform module to record of Route53 for verify domain identity using domain -resource "aws_route53_record" "ses_verification" { - count = var.enabled && var.zone_id != "" ? 1 : 0 - - zone_id = var.zone_id - name = var.ses_verification_name - type = var.txt_type - ttl = "600" - records = [aws_ses_domain_identity.default[count.index].verification_token] -} - # Module : DOMAIN DKIM # Description : Terraform module which creates Domain DKIM resource on AWS resource "aws_ses_domain_dkim" "default" { diff --git a/outputs.tf b/outputs.tf index 82a2cf1..c627c32 100644 --- a/outputs.tf +++ b/outputs.tf @@ -6,7 +6,7 @@ output "domain_identity_arn" { } output "id" { - value = try(aws_ses_domain_identity_verification.default[0].id, "") + value = try(aws_ses_domain_identity.default[0].id, "") description = "The domain name of the domain identity." } diff --git a/variables.tf b/variables.tf index fe18b40..db5f6bc 100644 --- a/variables.tf +++ b/variables.tf @@ -52,12 +52,6 @@ variable "iam_name" { description = "IAM username." } -variable "enable_verification" { - type = bool - default = false - description = "Control whether or not to verify SES DNS records." -} - variable "enable_mail_from" { type = bool default = false @@ -175,8 +169,4 @@ variable "cname_type" { variable "spf_domain_name" { type = string default = "spf_domain" -} -variable "ses_verification_name" { - type = string - default = "ses_verification" } \ No newline at end of file diff --git a/versions.tf b/versions.tf index f6a601f..7c8e539 100644 --- a/versions.tf +++ b/versions.tf @@ -1,11 +1,11 @@ # Terraform version terraform { - required_version = ">= 1.6.1" + required_version = ">= 1.6.5" required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.21.0" + version = ">= 5.30.0" } } -} \ No newline at end of file +}