-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathACS::SAE::CreateApplication.yml
68 lines (68 loc) · 1.59 KB
/
ACS::SAE::CreateApplication.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
FormatVersion: OOS-2019-06-01
Description:
name-en: ACS::SAE::CreateApplication
name-zh-cn: 创建SAE应用程序
en: Create SAE application
zh-cn: 创建SAE应用程序
Parameters:
applicationInfo:
Description:
en: The info of application
zh-cn: 应用程序信息
Type: Json
Tasks:
- Name: createApplication
Action: 'ACS::ExecuteApi'
Description:
en: Creates an application
zh-cn: 创建应用程序
Properties:
Service: SAE
API: CreateApplication
Parameters:
AppName:
'Fn::Select':
- appName
- '{{ applicationInfo }}'
ImageUrl:
'Fn::Select':
- imageUrl
- '{{ applicationInfo }}'
PackageType: Image
Cpu: 1000
Memory: 2048
Deploy: true
Replicas: 1
AutoConfig: true
Outputs:
ChangeOrderId:
ValueSelector: .Data.ChangeOrderId
Type: String
AppId:
ValueSelector: .Data.AppId
Type: String
- Name: describeChangeOrder
Action: 'ACS::WaitFor'
Description:
en: Waits for the application to be created
zh-cn: 等待应用程序创建完成
Properties:
Service: SAE
API: DescribeChangeOrder
Parameters:
ChangeOrderId: '{{ createApplication.ChangeOrderId }}'
StopRetryValues:
- 2
- 3
- 6
- 10
DesiredValues:
- 2
PropertySelector: .Data.Status
DelayType: Constant
Delay: 10
Retries: 43
Outputs:
appId:
Type: String
Value: '{{ createApplication.AppId }}'