-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathACS-ECS-RunShellScript.yml
93 lines (93 loc) · 2.13 KB
/
ACS-ECS-RunShellScript.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
FormatVersion: OOS-2019-06-01
Description:
en: Run shell script.
zh-cn: 运行shell脚本
title: ACS-ECS-RunShellScript
name-zh-cn: 运行shell脚本
categories:
- run_command
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: 地域ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
instanceId:
Label:
en: InstanceId
zh-cn: ECS实例
Type: String
AssociationProperty: ALIYUN::ECS::Instance::InstanceId
AssociationPropertyMetadata:
RegionId: regionId
commandContent:
Label:
en: CommandContent
zh-cn: 云助手命令
Type: String
AssociationProperty: Code
workingDir:
Label:
en: WorkingDir
zh-cn: ECS实例中运行命令的目录
Type: String
timeout:
Label:
en: Timeout
zh-cn: 最大超时时间,时间单位是秒
Type: Number
Default: 600
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: OOS扮演的RAM角色
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: runCommand
Description:
en: Execute cloud assistant command
zh-cn: 执行云助手命令
Action: ACS::ECS::RunCommand
Properties:
regionId: '{{ regionId }}'
commandContent: "{{ commandContent }}"
instanceId: '{{ instanceId }}'
commandType: RunShellScript
workingDir: "{{ workingDir }}"
timeout: "{{ timeout }}"
Outputs:
commandOutput:
Type: String
ValueSelector: invocationOutput
Outputs:
commandOutput:
Type: String
Value: '{{ runCommand.commandOutput }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- commandContent
- workingDir
- timeout
Label:
default:
zh-cn: 执行命令选型
en: run command options
- Parameters:
- regionId
- instanceId
Label:
default:
zh-cn: 选择实例
en: Select Ecs Instances
- Parameters:
- OOSAssumeRole
Label:
default:
zh-cn: 高级选项
en: Control Options