forked from aliyun/oos-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathACS::RDS::CreateDbInstance.json
89 lines (89 loc) · 2.4 KB
/
ACS::RDS::CreateDbInstance.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
{
"FormatVersion": "OOS-2019-06-01",
"Description": "Creates an RDS instance.",
"Parameters": {
"regionId": {
"Description": "The ID of region.",
"Type": "String",
"Default": "{{ ACS::RegionId }}"
},
"dBInstanceClass": {
"Description": "The instance type (specifications).",
"Type": "String"
},
"dBInstanceNetType": {
"Description": "The network type of the instance, Internet or Intranet.",
"Type": "String"
},
"dBInstanceStorage": {
"Description": "The storage capacity of the instance.",
"Type": "String"
},
"engine": {
"Description": "The engine type of the database.",
"Type": "String"
},
"engineVersion": {
"Description": "The version of the database.",
"Type": "String"
},
"payType": {
"Description": "The billing method of the instance.",
"Type": "String"
},
"securityIPList": {
"Description": "The IP whitelist of the instance.",
"Type": "String"
}
},
"Tasks": [
{
"Name": "createDBInstance",
"Action": "ACS::ExecuteAPI",
"Description": "Creates an RDS instance.",
"Properties": {
"Service": "RDS",
"API": "CreateDBInstance",
"Parameters": {
"RegionId": "{{ regionId }}",
"DBInstanceClass": "{{ dBInstanceClass }}",
"DBInstanceNetType": "{{ dBInstanceNetType }}",
"DBInstanceStorage": "{{ dBInstanceStorage }}",
"Engine": "{{ engine }}",
"EngineVersion": "{{ engineVersion }}",
"PayType": "{{ payType }}",
"SecurityIPList": "{{ securityIPList }}"
}
},
"Outputs": {
"dBInstanceId": {
"Type": "String",
"ValueSelector": "DBInstanceId"
}
}
},
{
"Name": "untilInstanceReady",
"Action": "ACS::WaitFor",
"Description": "Waits for DB Instance to enter running status.",
"Properties": {
"Service": "RDS",
"API": "DescribeDBInstances",
"Parameters": {
"RegionId": "{{ regionId }}",
"DBInstanceId": "{{ createDBInstance.dBInstanceId }}"
},
"DesiredValues": [
"Running"
],
"PropertySelector": "Items.DBInstance[].DBInstanceStatus"
}
}
],
"Outputs": {
"dBInstanceId": {
"Type": "String",
"Value": "{{ createDBInstance.dBInstanceId }}"
}
}
}