forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
instance.yml
93 lines (93 loc) · 1.75 KB
/
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
ROSTemplateFormatVersion: '2015-09-01'
Description: Memcache Instance/WhiteList resource example
Parameters:
VpcId:
Type: String
VSwitchId:
Type: String
ZoneId:
Type: String
InstanceClass:
Type: String
Default: memcache.master.small.default
InstanceName:
Type: String
Default: mytest
VpcPasswordFree:
Type: Boolean
Default: true
Password:
Type: String
SecurityIpGroupName:
Type: String
Default: mytest
Resources:
Instance:
Type: ALIYUN::Memcache::Instance
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
InstanceClass:
Ref: InstanceClass
InstanceName:
Ref: InstanceName
VpcPasswordFree:
Ref: VpcPasswordFree
ChargeType: PostPaid
NetworkType: VPC
Password:
Ref: Password
Whitelist:
Type: ALIYUN::Memcache::Whitelist
Properties:
InstanceId:
Ref: Instance
SecurityIpGroupName:
Ref: SecurityIpGroupName
SecurityIpGroupAttribute: test
SecurityIps: 0.0.0.0/0
Outputs:
InstanceId:
Value:
Fn::GetAtt:
- Instance
- InstanceId
InstanceName:
Value:
Fn::GetAtt:
- Instance
- InstanceName
ConnectionDomain:
Value:
Fn::GetAtt:
- Instance
- ConnectionDomain
Port:
Value:
Fn::GetAtt:
- Instance
- Port
QPS:
Value:
Fn::GetAtt:
- Instance
- QPS
SecurityIpGroupName:
Value:
Fn::GetAtt:
- Whitelist
- SecurityIpGroupName
SecurityIpGroupAttribute:
Value:
Fn::GetAtt:
- Whitelist
- SecurityIpGroupAttribute
SecurityIps:
Value:
Fn::GetAtt:
- Whitelist
- SecurityIps