streamtime_smtp_config (Resource)
The mail server Streamtime sends status, alert and report emails through. An organization has one set of these settings. Destroying the resource stops Terraform managing them and leaves the current values in place.
Example Usage
resource "streamtime_smtp_config" "mail" {
enabled = true
host = "smtp.example.com"
port = 587
encryption = "starttls"
username = "streamtime"
password = var.smtp_password
from_email = "streamtime@example.com"
from_name = "Streamtime"
link_base_url = "https://streamtime.example.com"
}
variable "smtp_password" {
type = string
sensitive = true
}
Schema
Optional
alert_emails_enabled(Boolean) Whether alert emails are sent.enabled(Boolean) Whether Streamtime sends email.encryption(String) How the connection is protected: starttls, ssl or none.from_email(String) The address emails come from.from_name(String) The name emails come from.host(String) The mail server address.link_base_url(String) The Streamtime address that links in emails point to.password(String, Sensitive) The mail server password. Streamtime never shows it, so Terraform cannot tell if it was changed elsewhere.port(Number) The mail server port.status_emails_enabled(Boolean) Whether status emails are sent.timeout_seconds(Number) How long to wait for the mail server.username(String) The account Streamtime signs in to the mail server with.weekly_report_enabled(Boolean) Whether the weekly report is sent.
Read-Only
id(String) Always smtp-config. Use it to import the settings.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# An organization has one set of email settings; the ID is always smtp-config.
terraform import streamtime_smtp_config.mail smtp-config