Resource: aws_ses_domain_identity

Provides an SES domain identity resource

Example Usage

Basic Usage

resource "aws_ses_domain_identity" "example" {
  domain = "example.com"
}

With Route53 Record

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]
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

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