-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS::RDS::RestartDbInstance.yml
48 lines (48 loc) · 1.23 KB
/
ACS::RDS::RestartDbInstance.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
FormatVersion: OOS-2019-06-01
Description:
name-en: ACS::RDS::RestartDbInstance
name-zh-cn: 重启实例(RDS)
en: Restarts an RDS instance
zh-cn: 重启一台RDS实例
Parameters:
regionId:
Label:
en: RegionId
zh-cn: 地域ID
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
Default: '{{ ACS::RegionId }}'
dBInstanceId:
Label:
en: RDSInstanceId
zh-cn: RDS实例ID
Type: String
AssociationProperty: ALIYUN::RDS::Instance::InstanceId
AssociationPropertyMetadata:
RegionId: regionId
Tasks:
- Name: restartDBInstance
Action: ACS::ExecuteAPI
Description:
en: Restarts an RDS instance
zh-cn: 重新启动RDS实例
Properties:
Service: RDS
API: RestartDBInstance
Parameters:
RegionId: '{{ regionId }}'
DBInstanceId: '{{ dBInstanceId }}'
- Name: untilInstanceReady
Action: ACS::WaitFor
Description:
en: Waits for the DB Instance to enter running status
zh-cn: 等待DB实例进入running状态
Properties:
Service: RDS
API: DescribeDBInstances
Parameters:
RegionId: '{{ regionId }}'
DBInstanceId: '{{ dBInstanceId }}'
DesiredValues:
- Running
PropertySelector: Items.DBInstance[].DBInstanceStatus