The atatus_tcp_check resource manages TCP port synthetic monitoring checks in Atatus. Use this resource to monitor network connectivity and connection latency to configured TCP ports on servers and services, such as PostgreSQL, MySQL, Redis, SSH, SMTP, and HTTP/S. The resource supports creating, updating, and deleting synthetic TCP checks through Terraform. Dashboard guide: TCP check. Provider setup and authentication: Terraform overview. Registry reference: atatus_tcp_check.

Example Usage

Database TCP Port Connectivity Check

Argument Reference

Required Arguments

  • name - (String) Name of the TCP synthetic check as displayed in the Atatus dashboard.
  • host - (String) Hostname, domain name to connect to (e.g. db.example.com).
  • port - (Number) Destination port number for the TCP connection (e.g. 22, 80, 443, 3306, 5432, 6379).
  • tags - (List of Strings) List of tags (e.g. ["env:production", "service:database"]).

TCP Assertions Reference

  • assertion - (List of Objects) Rules to validate TCP connection response time.

🌍 Supported Location Codes Reference

  • locations - (List of Strings) Array of global region codes where the check is executed from. Default: ["US_NEW_YORK"].
When specifying testing locations in the locations attribute of any synthetic check, use the following region codes.

Common Settings Reference (Applicable to all check types)

  • run_type - (String) Execution strategy across selected testing locations ("parallel" or "sequential"). Default: "parallel". When set to "sequential", locations run in sequence and min_location_failed cannot be configured.
  • frequency - (String) Execution frequency interval ("1m", "5m", "10m", "15m", "30m", "1h", "6h", "12h", "1d"). Default: "5m".
  • retry_count - (Number) Number of automatic retries before triggering an alert upon check failure (0 to 3). Supported for both "parallel" and "sequential" runs. Default: 0.
  • min_location_failed - (Number) Minimum number of failed locations required before alerting (default: 1). Note: Only applicable when run_type is "parallel". Configuring min_location_failed when run_type = "sequential" is not allowed and produces a validation error.
  • emails - (List of Strings) List of email addresses to alert directly when the check fails (auto-mapped to Atatus notification channels).
  • channel_ids - (List of Strings) List of specific Atatus notification channel IDs to alert on failure. See Notification channels.