alicloud_fnf_schedule

Provides a Serverless Workflow Schedule resource.

For information about Serverless Workflow Schedule and how to use it, see What is Schedule.

Example Usage

Basic Usage

provider "alicloud" {
  region = "cn-shanghai"
}

resource "alicloud_fnf_flow" "example" {
  definition  = <<EOF
  version: v1beta1
  type: flow
  steps:
    - type: pass
      name: helloworld
  EOF  
  description = "tf-exampleFnFFlow983041"
  name        = "tf-exampleSchedule"
  type        = "FDL"
}

resource "alicloud_fnf_schedule" "example" {
  cron_expression = "30 9 * * * *"
  description     = "tf-exampleFnFSchedule983041"
  enable          = "true"
  flow_name       = alicloud_fnf_flow.example.name
  payload         = "{\"tf-example\": \"example success\"}"
  schedule_name   = "tf-exampleFnFSchedule983041"
}
  version: v1beta1
  type: flow
  steps:
    - type: pass
      name: helloworld
  EOF  
  description = "tf-exampleFnFFlow983041"
  name        = "tf-exampleSchedule"
  type        = "FDL"
}

resource "alicloud_fnf_schedule" "example" {
  cron_expression = "30 9 * * * *"
  description     = "tf-exampleFnFSchedule983041"
  enable          = "true"
  flow_name       = alicloud_fnf_flow.example.name
  payload         = "{\"tf-example\": \"example success\"}"
  schedule_name   = "tf-exampleFnFSchedule983041"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Serverless Workflow Schedule can be imported using the id, e.g.

$ terraform import alicloud_fnf_schedule.example <schedule_name>:<flow_name>