This topic describes how to use Alibaba Cloud Resource Orchestration Service (ROS).
Serverless Workflow has been connected to Alibaba Cloud ROS. You can use ROS to manage flows.
Examples
You can create resources by using the ROS console or Alibaba Cloud CLI. For more information, see Use a template to create a stack and Stack operations. For more information about template definition, see ALIYUN::FNF::Flow.
- YAML format
ROSTemplateFormatVersion: '2015-09-01' Resources: Flow: Type: 'ALIYUN::FNF::Flow' Properties: Description: flow created from ros Definition: |- version: v1 type: flow steps: - type: pass name: pass1 Name: test-ros Outputs: CreatedTime: Description: The flow creation time. Value: 'Fn::GetAtt': - Flow - CreatedTime LastModifiedTime: Description: The flow last modified time. Value: 'Fn::GetAtt': - Flow - LastModifiedTime Id: Description: The flow ID. Value: 'Fn::GetAtt': - Flow - Id
- JSON format
{ "ROSTemplateFormatVersion": "2015-09-01", "Resources": { "Flow": { "Type": "ALIYUN::FNF::Flow", "Properties": { "Description": "flow created from ros", "Definition": "version: v1\ntype: flow\nsteps:\n - type: pass\n name: pass1", "Name": "test-ros" } } }, "Outputs": { "CreatedTime": { "Description": "The flow creation time.", "Value": { "Fn::GetAtt": [ "Flow", "CreatedTime" ] } }, "LastModifiedTime": { "Description": "The flow last modified time.", "Value": { "Fn::GetAtt": [ "Flow", "LastModifiedTime" ] } }, "Id": { "Description": "The flow ID.", "Value": { "Fn::GetAtt": [ "Flow", "Id" ] } } } }