forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hi-tsdb-instance.yml
145 lines (145 loc) · 3.77 KB
/
hi-tsdb-instance.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
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
139
140
141
142
143
144
145
ROSTemplateFormatVersion: '2015-09-01'
Description: TSDB HiTSDBInstance resource example
Parameters:
InstanceStorage:
Type: Number
Description: 'The storage capacity of the instance. Unit: GB. For example, the
value 50 indicates 50 GB.'
Default: 40
MinValue: 40
MaxValue: 6000
ZoneId:
Type: String
Description: The zone ID of the instance.
AssociationProperty: ALIYUN::ECS::Instance::ZoneId
VPCId:
Type: String
Description: The ID of the virtual private cloud (VPC) that is connected to the
instance.
AssociationProperty: ALIYUN::ECS::VPC::VPCId
VSwitchId:
Type: String
Description: The ID of the VSwitch in the specified VPC.
AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
AssociationPropertyMetadata:
VpcId: VPCId
ZoneId: ZoneId
InstanceAlias:
Type: String
Description: The alias of the instance.
Default: null
PricingCycle:
Type: String
Description: 'The unit of the validity period. This parameter is valid only when
the PayType parameter is set to PREPAY. Default value: Month.'
Default: Month
AllowedValues:
- Month
- Year
SecurityIpList:
Type: Json
Description: List of the IP patterns.For example, ["127.0.0.1", "192.168.0.1/24"]
Default: null
InstanceClass:
Type: String
Description: |-
The type of the instance. For more information, see Instance types:
tsdb.1x.basic: Basic Edition I
tsdb.3x.basic: Basic Edition II
tsdb.4x.basic: Basic Edition III
tsdb.12x.standard: Standard Edition I
tsdb.24x.standard: Standard Edition II
tsdb.48x.large: Ultimate Edition I
tsdb.96x.large: Ultimate Edition II and so on.
Default: tsdb.1x.basic
Duration:
Type: Number
Description: 'The validity period of the instance. This parameter is valid only
when the PayType parameter is set to PREPAY. Default value: 1.'
Default: 1
AllowedValues:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
PayType:
Type: String
Description: 'The billing method. Valid values: POSTPAY and PREPAY. The POSTPAY
value indicates the pay-as-you-go method, and the PREPAY value indicates the
subscription method. Default POSTPAY'
Default: POSTPAY
AllowedValues:
- POSTPAY
- PREPAY
Resources:
HiTSDBInstance:
Type: ALIYUN::TSDB::HiTSDBInstance
Properties:
ZoneId:
Ref: ZoneId
VPCId:
Ref: VPCId
VSwitchId:
Ref: VSwitchId
InstanceStorage:
Ref: InstanceStorage
InstanceAlias:
Ref: InstanceAlias
PricingCycle:
Ref: PricingCycle
SecurityIpList:
Ref: SecurityIpList
InstanceClass:
Ref: InstanceClass
Duration:
Ref: Duration
PayType:
Ref: PayType
Outputs:
InstanceId:
Description: The ID of the instance.
Value:
Fn::GetAtt:
- HiTSDBInstance
- InstanceId
ReverseVpcPort:
Description: Reverse vpc port of the instance.
Value:
Fn::GetAtt:
- HiTSDBInstance
- ReverseVpcPort
ReverseVpcIp:
Description: Reverse vpc ip of the instance.
Value:
Fn::GetAtt:
- HiTSDBInstance
- ReverseVpcIp
PublicConnectionString:
Description: Public connection string of the instance.
Value:
Fn::GetAtt:
- HiTSDBInstance
- PublicConnectionString
EngineType:
Description: Engine type of the instance.
Value:
Fn::GetAtt:
- HiTSDBInstance
- EngineType
OrderId:
Description: Order id of created instance.
Value:
Fn::GetAtt:
- HiTSDBInstance
- OrderId
ConnectionString:
Description: Connection string of the instance.
Value:
Fn::GetAtt:
- HiTSDBInstance
- ConnectionString