Skip to main content

Action Modes

Every resource policy in a profile has an action mode that determines what happens when a non-compliant resource is found.

Notify

Detect and report. The resource is flagged as a finding and users are notified through configured channels. No changes are made to the resource.

Every resource policy in the policy catalog supports Notify mode. This is the safest starting point.

Fix

Detect and auto-remediate. Kostavo applies a safe corrective action to the resource. The specific fix depends on the policy type:

PolicyFix Action
running_computeTerminate the cluster
cluster_no_autoterminationSet auto-termination to default threshold
warehouse_runningStop the warehouse
warehouse_no_autostopEnable auto-stop
job_failing_repeatedlyDisable the job trigger
serving_scale_to_zeroEnable scale-to-zero
vector_search_runningStop the Vector Search endpoint
app_runningStop the app
instance_pool_idleReduce minimum idle instances
instance_pool_no_autoterminationSet auto-termination
alert_v2_schedule_frequencyReduce alert frequency
alert_v2_warehouse_sizeMove alert to smaller warehouse

Not all resource policies support Fix mode; many are informational and only support Notify.

Remove

Detect and delete. For abandoned or unused resources, Kostavo removes them entirely. This is the most aggressive mode and should be used carefully.

Remove mode requires the Professional plan or higher; Starter includes Notify and Fix. See Billing and tiers.

PolicyRemove Action
cluster_abandonedDelete the abandoned cluster
token_no_expiryRevoke the token
alert_v2_no_destinationDelete the unmonitored alert

How Schedules Affect Actions

When a schedule is attached to an assignment, Fix and Remove are skipped while the schedule is active; policies keep running and findings keep being recorded either way. The full state table is in the Schedules concept.

Choosing an Action Mode

  • Start with Notify for all policies to understand your environment
  • Move to Fix for cost-related policies once you're confident in the findings
  • Use Remove sparingly and only for clearly abandoned resources