The Atatus provider allows managing synthetic monitoring checks in the Atatus observability platform using Terraform. The provider is published on the Terraform Registry as atatus/atatus.

Prerequisites

Before you start, make sure you have:
  • Terraform installed.
  • An Atatus account, and an API key with Read & Write permission.

Example Usage

1.0.0 is the current release. Check the Terraform Registry for newer versions.

Authentication

By default, authentication is performed via API Key using the X-API-KEY HTTP header (auth_type = "header"). To get an API key, see Generate New API Key.
If you use session cookie authentication, set auth_type = "cookie":

Apply your configuration

After you add the provider and a check resource to your .tf files, run these commands from the same directory:
terraform init downloads the provider, terraform plan shows what will be created, and terraform apply creates the checks. They then appear under Synthetics in the Atatus dashboard. Each check type has its own page with an example you can copy:

Schema

Required

  • api_key (String, Sensitive) Atatus API Key or session cookie string.

Optional

  • account_id (String) Your Atatus Account ID (e.g., 1234567890abcdef12345678). Optional for v2 API.
  • auth_type (String) Authentication type: 'header' (default) or 'cookie'.

Provider arguments

Settings shared by all checks

These arguments work the same way on every resource:
min_location_failed only works with run_type = "parallel". Setting it together with run_type = "sequential" fails validation.