-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoutputs.tf
More file actions
65 lines (57 loc) · 2.32 KB
/
Copy pathoutputs.tf
File metadata and controls
65 lines (57 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
output "arn" {
description = "The ARN of the SES identity."
value = aws_sesv2_email_identity.this.arn
}
output "id" {
description = "The ID of the SES identity."
value = aws_sesv2_email_identity.this.id
}
output "status" {
description = "The status of the SES identity."
value = aws_sesv2_email_identity.this.verified_for_sending_status ? "VERIFIED" : "PENDING"
}
output "name" {
description = "The domain name for the SES identity."
value = aws_sesv2_email_identity.this.email_identity
}
output "type" {
description = "The type of the SES identity."
value = aws_sesv2_email_identity.this.identity_type
}
output "configuration_set" {
description = "The configuration set to use by default when sending from this identity."
value = aws_sesv2_email_identity.this.configuration_set_name
}
output "dkim" {
description = "The configuration for the DKIM."
value = {
type = var.dkim.type
status = one(aws_sesv2_email_identity.this.dkim_signing_attributes[*].status)
current_signing_key_type = local.signing_key_type_reverse[one(aws_sesv2_email_identity.this.dkim_signing_attributes[*].current_signing_key_length)]
signing_key_type = local.signing_key_type_reverse[one(aws_sesv2_email_identity.this.dkim_signing_attributes[*].next_signing_key_length)]
selector_name = one(aws_sesv2_email_identity.this.dkim_signing_attributes[*].domain_signing_selector)
origin = one(aws_sesv2_email_identity.this.dkim_signing_attributes[*].signing_attributes_origin)
last_key_generated_at = one(aws_sesv2_email_identity.this.dkim_signing_attributes[*].last_key_generation_timestamp)
verification = {
enabled = var.dkim.verification.enabled
zone = {
id = var.dkim.verification.zone_id
}
records = [
for record in aws_route53_record.dkim : {
name = record.name
value = record.records
type = record.type
ttl = record.ttl
}
]
}
}
}
# output "debug" {
# value = {
# for k, v in aws_sesv2_email_identity.this :
# k => v
# if !contains(["arn", "id", "email_identity", "identity_type", "tags", "tags_all", "dkim_signing_attributes", "verified_for_sending_status", "configuration_set_name"], k)
# }
# }