scalr_run_schedule_rule

Resource: scalr_run_schedule_rule

Manages the state of run schedule rules in Scalr.

Example Usage

resource "scalr_run_schedule_rule" "example" {
  schedule      = "0 4 * * *"
  schedule_mode = "apply"
  workspace_id  = "ws-xxxxxxxxxx"
}

Schema

Required

  • schedule (String) Cron expression for scheduled runs. Time should be in UTC.
  • schedule_mode (String) Mode of the scheduled run ("apply", "destroy", "refresh").
  • workspace_id (String) The identifier of the Scalr workspace, in the format ws-<RANDOM STRING>.

Read-Only

  • id (String) The ID of this resource.

Import

Import is supported using the following syntax:

terraform import scalr_run_schedule_rule.example sr-xxxxxxxxxx