-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS::RDS::RecoveryDbInstance.yml
107 lines (107 loc) · 3 KB
/
ACS::RDS::RecoveryDbInstance.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
FormatVersion: OOS-2019-06-01
Description:
name-en: ACS::RDS::RecoveryDbInstance
name-zh-cn: 将数据库恢复到已存在的实例或新实例
en: Recoveries database to an existed or new instance
zh-cn: 将数据库恢复到已存在的实例或新实例
Parameters:
regionId:
Description:
en: The ID of region
zh-cn: 地域ID
Type: String
Default: '{{ ACS::RegionId }}'
targetDBInstanceId:
Description:
en: The ID of target DB Instance
zh-cn: 目标DB实例的ID
Type: String
dBInstanceId:
Description:
en: The ID of DB instance
zh-cn: DB实例的ID
Type: String
dBInstanceClass:
Description:
en: The instance type (specifications)
zh-cn: 实例类型(规格)
Type: String
restoreTime:
Description:
en: The time that database will be recovered
zh-cn: 数据库恢复的时间
Type: String
instanceNetworkType:
Description:
en: The network type of DB Instance will be recovered
zh-cn: DB实例的网络类型恢复成功
Type: String
payType:
Description:
en: The billing method of the instance
zh-cn: 实例的计费方法
Type: String
vPCId:
Description:
en: The VPC ID of DB Instance will be recovered
zh-cn: 恢复DB实例的VPC
Type: String
vSwitchId:
Description:
en: The vSwitch ID of DB Instance will be recovered
zh-cn: 恢复DB实例的vSwitch
Type: String
dBInstanceStorage:
Description:
en: The Storage of DB Instance will be recovered
zh-cn: 恢复DB实例的存储方式
Type: String
dBName:
Description:
name-en: dBName
name-zh-cn: DB实例名称
en: The name of DB Instance will be recovered.
zh-cn: 恢复DB实例的名称。
Type: String
Tasks:
- Name: recoveryDBInstance
Action: ACS::ExecuteAPI
Description:
en: Recoveries database to an existed or new instance
zh-cn: 将数据库恢复到已存在的实例或新实例
Properties:
Service: RDS
API: RecoveryDBInstance
Parameters:
RegionId: '{{ regionId }}'
DBInstanceClass: '{{ dBInstanceClass }}'
DBInstanceId: '{{ dBInstanceId }}'
DBInstanceStorage: '{{ dBInstanceStorage }}'
InstanceNetworkType: '{{ instanceNetworkType }}'
PayType: '{{ payType }}'
RestoreTime: '{{ restoreTime }}'
VPCId: '{{ vPCId }}'
VSwitchId: '{{ vSwitchId }}'
Outputs:
dBInstanceId:
Type: String
ValueSelector: DBInstanceId
- Name: untilInstanceReady
Action: ACS::WaitFor
Description:
en: Waits for the database to enter running status
zh-cn: 等待数据库进入运行状态
Properties:
Service: RDS
API: DescribeDatabases
Parameters:
RegionId: '{{ regionId }}'
DBInstanceId: '{{ recoveryDBInstance.dBInstanceId }}'
DBName: '{{ dBName }}'
DesiredValues:
- Running
PropertySelector: Databases.Database[].DBStatus
Outputs:
dBInstanceId:
Type: String
Value: '{{ recoveryDBInstance.dBInstanceId }}'