Provides an SES domain identity resource
resource "aws_ses_domain_identity" "example" {
domain = "example.com"
}
resource "aws_ses_domain_identity" "example" {
domain = "example.com"
}
resource "aws_route53_record" "example_amazonses_verification_record" {
zone_id = "ABCDEFGHIJ123"
name = "_amazonses.example.com"
type = "TXT"
ttl = "600"
records = [aws_ses_domain_identity.example.verification_token]
}
This resource supports the following arguments:
domain
- (Required) The domain name to assign to SESThis resource exports the following attributes in addition to the arguments above:
arn
- The ARN of the domain identity.verification_token
- 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 the With Route53 Record example
for 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.In Terraform v1.5.0 and later, use an import
block to import SES domain identities using the domain name. For example:
import {
to = aws_ses_domain_identity.example
id = "example.com"
}
Using terraform import
, import SES domain identities using the domain name. For example:
% terraform import aws_ses_domain_identity.example example.com