Resource: auth0_email_template

With Auth0, you can have standard welcome, password reset, and account verification email-based workflows built right into Auth0. This resource allows you to configure email templates to customize the look, feel, and sender identities of emails sent by Auth0. Used in conjunction with configured email providers.

Example Usage

resource "auth0_email_provider" "my_email_provider" {
  name                 = "ses"
  enabled              = true
  default_from_address = "accounts@example.com"

  credentials {
    access_key_id     = "AKIAXXXXXXXXXXXXXXXX"
    secret_access_key = "7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    region            = "us-east-1"
  }
}

resource "auth0_email_template" "my_email_template" {
  depends_on = [auth0_email_provider.my_email_provider]

  template                = "welcome_email"
  body                    = "<html><body><h1>Welcome!</h1></body></html>"
  from                    = "welcome@example.com"
  result_url              = "https://example.com/welcome"
  subject                 = "Welcome"
  syntax                  = "liquid"
  url_lifetime_in_seconds = 3600
  enabled                 = true
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# This resource can be imported using the pre-defined template name.
#
# These names are `verify_email`, `verify_email_by_code`, `reset_email`,
# `welcome_email`, `blocked_account`, `stolen_credentials`,
# `enrollment_email`, `mfa_oob_code`, and `user_invitation`.
#
# The names `change_password`, and `password_reset` are also supported
# for legacy scenarios.
#
# Example:
terraform import auth0_email_template.my_email_template "welcome_email"