全部产品
云市场

资源编排 ROS

更新时间:2019-09-17 13:33:52

本产品已接入阿里云资源编排服务(简称 ROS),您可以使用 ROS 管理流程。

使用示例

您可以使用ROS 控制台或者CLI创建资源。模板定义参考如下,详细的定义请参见流程资源定义文档

YAML 格式流程资源模板

  1. ROSTemplateFormatVersion: '2015-09-01'
  2. Resources:
  3. Flow:
  4. Type: 'ALIYUN::FNF::Flow'
  5. Properties:
  6. Description: flow created from ros
  7. Definition: |-
  8. version: v1beta1
  9. type: flow
  10. steps:
  11. - type: pass
  12. name: pass1
  13. Name: test-ros
  14. Outputs:
  15. CreatedTime:
  16. Description: The flow creation time.
  17. Value:
  18. 'Fn::GetAtt':
  19. - Flow
  20. - CreatedTime
  21. LastModifiedTime:
  22. Description: The flow last modified time.
  23. Value:
  24. 'Fn::GetAtt':
  25. - Flow
  26. - LastModifiedTime
  27. Id:
  28. Description: The flow ID.
  29. Value:
  30. 'Fn::GetAtt':
  31. - Flow
  32. - Id

JSON 格式流程资源模板

  1. {
  2. "ROSTemplateFormatVersion": "2015-09-01",
  3. "Resources": {
  4. "Flow": {
  5. "Type": "ALIYUN::FNF::Flow",
  6. "Properties": {
  7. "Description": "flow created from ros",
  8. "Definition": "version: v1beta1\ntype: flow\nsteps:\n - type: pass\n name: pass1",
  9. "Name": "test-ros"
  10. }
  11. }
  12. },
  13. "Outputs": {
  14. "CreatedTime": {
  15. "Description": "The flow creation time.",
  16. "Value": {
  17. "Fn::GetAtt": [
  18. "Flow",
  19. "CreatedTime"
  20. ]
  21. }
  22. },
  23. "LastModifiedTime": {
  24. "Description": "The flow last modified time.",
  25. "Value": {
  26. "Fn::GetAtt": [
  27. "Flow",
  28. "LastModifiedTime"
  29. ]
  30. }
  31. },
  32. "Id": {
  33. "Description": "The flow ID.",
  34. "Value": {
  35. "Fn::GetAtt": [
  36. "Flow",
  37. "Id"
  38. ]
  39. }
  40. }
  41. }
  42. }