-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathACS-ECS-RunShellScript.json
138 lines (138 loc) · 3.06 KB
/
ACS-ECS-RunShellScript.json
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"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"
}
}
}
]
}
}
}