-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
outputs.tf
62 lines (51 loc) · 2.47 KB
/
outputs.tf
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
output "ses_domain_identity_arn" {
value = try(aws_ses_domain_identity.ses_domain[0].arn, "")
description = "The ARN of the SES domain identity"
}
output "ses_domain_identity_verification_token" {
value = try(aws_ses_domain_identity.ses_domain[0].verification_token, "")
description = "A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorised SES to act on their behalf. The domain identity will be in state 'verification pending' until this is done. See below for an example of how this might be achieved when the domain is hosted in Route 53 and managed by Terraform. Find out more about verifying domains in Amazon SES in the AWS SES docs."
}
output "ses_dkim_tokens" {
value = try(aws_ses_domain_dkim.ses_domain_dkim.0.dkim_tokens, "")
description = "A list of DKIM Tokens which, when added to the DNS Domain as CNAME records, allows for receivers to verify that emails were indeed authorized by the domain owner."
}
output "spf_record" {
value = try(aws_route53_record.amazonses_spf_record[0].fqdn, "")
description = "The SPF record for the domain. This is a TXT record that should be added to the domain's DNS settings to allow SES to send emails on behalf of the domain."
}
output "custom_from_domain" {
value = try(join("", aws_ses_domain_mail_from.custom_mail_from[*].mail_from_domain))
description = "The custom mail FROM domain"
}
output "user_name" {
value = module.ses_user.user_name
description = "Normalized IAM user name."
}
output "user_arn" {
value = module.ses_user.user_arn
description = "The ARN assigned by AWS for this user."
}
output "user_unique_id" {
value = module.ses_user.user_unique_id
description = "The unique ID assigned by AWS."
}
output "ses_group_name" {
value = local.ses_group_name
description = "The IAM group name"
}
output "secret_access_key" {
sensitive = true
value = module.ses_user.secret_access_key
description = "The IAM secret for usage with SES API. This will be written to the state file in plain text."
}
# https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html
output "ses_smtp_password" {
sensitive = true
value = module.ses_user.ses_smtp_password_v4
description = "The SMTP password. This will be written to the state file in plain text."
}
output "access_key_id" {
value = module.ses_user.access_key_id
description = "The SMTP user which is access key ID."
}