atatus_multistep_check resource manages multistep API synthetic monitoring checks in Atatus.
Use this resource to monitor complex, sequential API workflows by executing multiple requests in a defined order and validating responses at each step. The resource supports creating, updating, and deleting synthetic multistep API checks through Terraform.
Dashboard guide: multistep API check. Provider setup and authentication: Terraform overview. Registry reference: atatus_multistep_check.
Example Usage
Multi-Step API Workflow (Healthcheck and Profile Retrieval)
Argument Reference
Top-Level Check Arguments
Required Arguments
-
name- (String) Name of the multistep synthetic check as displayed in the Atatus dashboard. -
tags- (List of Strings) List of tags (e.g.["env:production"]). -
step- (List of Objects) Ordered sequence of API step objects to execute sequentially.
step list supports the following attributes.
Required Arguments in HTTP Check Steps
-
name- (String) Descriptive name of the individual step. -
method- (String) HTTP Method:GET,POST,PUT,DELETE,PATCH,HEAD,OPTIONS. Default:"GET". -
url- (String) URL endpoint to call for this step.
Step Execution & Alert Arguments
-
allow_failure- (Boolean) Whether subsequent steps continue executing if this step fails. Default:false. -
consider_test_failed- (Boolean) Whether failure in this step marks the entire synthetic test run as failed. Note: This field is only applicable whenallow_failure = true. Whenallow_failure = false, this field must not be specified because any failure immediately halts and fails the check run. Default:true(whenallow_failure = true). -
retry_count- (Number) Retries for this specific step before considering it failed. Default:0(optional, automatically defaults to0if omitted).
Assertion Block Reference
assertion- (List of Objects) Rules used to determine whether a check test passes or fails.
assertion object supports the following attributes.
HTTP Assertions Matrix
🌍 Supported Location Codes Reference
locations- (List of Strings) Array of global region codes where the check is executed from. Default:["US_NEW_YORK"].
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 andmin_location_failedcannot be configured. -
frequency- (String) Execution frequency interval ("1m","5m","10m","15m","30m","1h","6h","12h","1d"). Default:"1m". -
retry_count- (Number) Number of automatic retries before triggering an alert upon check failure (0to3). 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 whenrun_typeis"parallel". Configuringmin_location_failedwhenrun_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.