Uptimeify Docs
Ressourcen

uptimeify_smtp_settings

Ressource uptimeify_smtp_settings: Beispiel, alle Attribute, Import.

Die Beschreibungen auf dieser Seite kommen direkt aus dem Provider-Schema und sind deshalb englisch.

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.

Beispiel

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

Pflichtfelder

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 whenever password_wo_version changes.
  • port (Number)
  • username (String)

Optional

  • from_name (String)
  • password_wo_version (Number) Change to resend password_wo.
  • reply_to (String)
  • tls_mode (String) ssl, starttls or none.

Nur lesbar

  • has_password (Boolean)
  • id (String) The ID of this resource.

Import

Import geht so:

Mit tofu import bzw. terraform import, zum Beispiel:

# Any id; the password is not imported
terraform import uptimeify_smtp_settings.this smtp

Auf dieser Seite