uptimeify_smtp_settings
The organization's own SMTP server for outgoing mail (one per organization). Destroying it switches back to platform sending (disable). The host must resolve to a public address. Organization admins only. Import with any id, e.g. smtp; the password is not imported.
The organization's own SMTP server for outgoing mail (one per organization). Destroying it switches back to platform sending (disable). The host must resolve to a public address. Organization admins only. Import with any id, e.g. smtp; the password is not imported.
Example Usage
variable "smtp_password" {
type = string
sensitive = true
ephemeral = true
}
resource "uptimeify_smtp_settings" "this" {
host = "smtp.example.com"
port = 587
username = "alerts@example.com"
password_wo = var.smtp_password
password_wo_version = 1 # bump to send a new password
tls_mode = "starttls"
from_name = "Example Monitoring"
from_email = "alerts@example.com"
}Schema
Required
NOTE: Write-only arguments are supported in Terraform 1.11 and later.
from_email(String)host(String)password_wo(String, Sensitive, Write-only) Write-only SMTP password, never stored in the state or returned. Sent on create and wheneverpassword_wo_versionchanges.port(Number)username(String)
Optional
from_name(String)password_wo_version(Number) Change to resendpassword_wo.reply_to(String)tls_mode(String)ssl,starttlsornone.
Read-Only
has_password(Boolean)id(String) The ID of this resource.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# Any id; the password is not imported
terraform import uptimeify_smtp_settings.this smtpuptimeify_smtp_monitor
An SMTP monitor: connects and authenticates (check_mode protocol) or only checks the port (tcp). The hostname must resolve to a public address. Import with the numeric id or the public id.
uptimeify_ssh_monitor
An SSH monitor: logs in (check_mode protocol) or only checks the port (tcp). The hostname must resolve to a public address. Import with the numeric id or the public id.