Resource: aws_ses_template

Provides a resource to create a SES template.

Example Usage

resource "aws_ses_template" "MyTemplate" {
  name    = "MyTemplate"
  subject = "Greetings, {{name}}!"
  html    = "<h1>Hello {{name}},</h1><p>Your favorite animal is {{favoriteanimal}}.</p>"
  text    = "Hello {{name}},\r\nYour favorite animal is {{favoriteanimal}}."
}

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 templates using the template name. For example:

import {
  to = aws_ses_template.MyTemplate
  id = "MyTemplate"
}

Using terraform import, import SES templates using the template name. For example:

% terraform import aws_ses_template.MyTemplate MyTemplate