File tree Expand file tree Collapse file tree 6 files changed +9
-43
lines changed Expand file tree Collapse file tree 6 files changed +9
-43
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ module "ses" {
20
20
emails = []
21
21
zone_id = " XXXXXXXX69XB8J3IEP"
22
22
23
- enable_verification = true
24
- enable_mx = true
25
- enable_spf_domain = true
23
+ enable_mx = true
24
+ enable_spf_domain = true
26
25
}
Original file line number Diff line number Diff line change 1
1
# Terraform version
2
2
terraform {
3
- required_version = " >= 1.6.1 "
3
+ required_version = " >= 1.6.5 "
4
4
5
5
required_providers {
6
6
aws = {
7
7
source = " hashicorp/aws"
8
- version = " >= 5.21 .0"
8
+ version = " >= 5.30 .0"
9
9
}
10
10
}
11
- }
11
+ }
Original file line number Diff line number Diff line change @@ -33,29 +33,6 @@ resource "aws_ses_email_identity" "default" {
33
33
email = var. emails [count . index ]
34
34
}
35
35
36
- # ##DNS VERIFICATION#######
37
-
38
- # Module : DOMAIN IDENTITY VERIFICATION
39
- # Description : Terraform module to verify domain identity using domain
40
- resource "aws_ses_domain_identity_verification" "default" {
41
- count = var. enabled && var. enable_domain && var. enable_verification ? 1 : 0
42
-
43
- domain = aws_ses_domain_identity. default [count . index ]. id
44
- depends_on = [aws_route53_record . ses_verification ]
45
- }
46
-
47
- # Module : DOMAIN IDENTITY VERIFICATION ROUTE53
48
- # Description : Terraform module to record of Route53 for verify domain identity using domain
49
- resource "aws_route53_record" "ses_verification" {
50
- count = var. enabled && var. zone_id != " " ? 1 : 0
51
-
52
- zone_id = var. zone_id
53
- name = var. ses_verification_name
54
- type = var. txt_type
55
- ttl = " 600"
56
- records = [aws_ses_domain_identity . default [count . index ]. verification_token ]
57
- }
58
-
59
36
# Module : DOMAIN DKIM
60
37
# Description : Terraform module which creates Domain DKIM resource on AWS
61
38
resource "aws_ses_domain_dkim" "default" {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ output "domain_identity_arn" {
6
6
}
7
7
8
8
output "id" {
9
- value = try (aws_ses_domain_identity_verification . default [0 ]. id , " " )
9
+ value = try (aws_ses_domain_identity . default [0 ]. id , " " )
10
10
description = " The domain name of the domain identity."
11
11
}
12
12
Original file line number Diff line number Diff line change @@ -52,12 +52,6 @@ variable "iam_name" {
52
52
description = " IAM username."
53
53
}
54
54
55
- variable "enable_verification" {
56
- type = bool
57
- default = false
58
- description = " Control whether or not to verify SES DNS records."
59
- }
60
-
61
55
variable "enable_mail_from" {
62
56
type = bool
63
57
default = false
@@ -175,8 +169,4 @@ variable "cname_type" {
175
169
variable "spf_domain_name" {
176
170
type = string
177
171
default = " spf_domain"
178
- }
179
- variable "ses_verification_name" {
180
- type = string
181
- default = " ses_verification"
182
172
}
Original file line number Diff line number Diff line change 1
1
# Terraform version
2
2
terraform {
3
- required_version = " >= 1.6.1 "
3
+ required_version = " >= 1.6.5 "
4
4
5
5
required_providers {
6
6
aws = {
7
7
source = " hashicorp/aws"
8
- version = " >= 5.21 .0"
8
+ version = " >= 5.30 .0"
9
9
}
10
10
}
11
- }
11
+ }
You can’t perform that action at this time.
0 commit comments