forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ga-accelerated-access-to-specified-ip.yml
145 lines (145 loc) · 3.28 KB
/
ga-accelerated-access-to-specified-ip.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'
Parameters:
AccelerateRegionId:
Type: String
Label:
en: Accelerate region ID.
zh-cn: 加速地域ID。
AssociationProperty: ALIYUN::ECS::RegionId
Default: cn-hongkong
EndpointGroupRegion:
Type: String
Label:
en: Endpoint group region ID.
zh-cn: 终端节点所在的地域ID。
AssociationProperty: ALIYUN::ECS::RegionId
Default: us-west-1
EndpointIPs:
Type: Json
Label:
en: Endpoint ip list.
zh-cn: 终端节点IP。
AssociationProperty: List[Parameter]
AssociationPropertyMetadata:
Parameter:
Type: String
MinLength: 2
MaxLength: 2
Resources:
Accelerator:
Type: ALIYUN::GA::Accelerator
Properties:
PricingCycle: Month
Duration: 1
Spec: 1
AutoPay: true
BandwidthPackage:
Type: ALIYUN::GA::BandwidthPackage
Properties:
BandwidthType: Advanced
Type: Basic
Bandwidth: 2
PricingCycle: Month
Duration: 1
Addiation:
Type: ALIYUN::GA::BandwidthPackageAcceleratorAddition
Properties:
BandwidthPackageId:
Ref: BandwidthPackage
AcceleratorId:
Ref: Accelerator
AccelerateRegion:
Type: ALIYUN::GA::IpSets
Properties:
AcceleratorId:
Ref: Accelerator
AccelerateRegion:
- Bandwidth: 2
IpVersion: IPv4
AccelerateRegionId:
Ref: AccelerateRegionId
DependsOn: Addiation
Listener:
Type: ALIYUN::GA::Listener
Properties:
PortRanges:
- FromPort: 80
ToPort: 80
Protocol: tcp
AcceleratorId:
Ref: Accelerator
ClientAffinity: SOURCE_IP
DependsOn: AccelerateRegion
EndpointGroup:
Type: ALIYUN::GA::EndpointGroup
Properties:
EndpointGroupRegion:
Ref: EndpointGroupRegion
AcceleratorId:
Ref: Accelerator
ListenerId:
Ref: Listener
EndpointConfigurations:
- Type: Ip
Weight: 10
Endpoint:
Fn::Select:
- 0
- Ref: EndpointIPs
- Type: Ip
Weight: 40
Endpoint:
Fn::Select:
- 1
- Ref: EndpointIPs
Outputs:
BasicBandwidthPackageId:
Description:
en: The ID of the basic bandwidth package
zh-cn: 基础带宽包ID
Value:
Fn::GetAtt:
- Addiation
- BandwidthPackageId
AcceleratorId:
Description:
en: The ID of the Global Accelerator instance
zh-cn: 全球加速实例ID
Value:
Fn::GetAtt:
- Addiation
- AcceleratorId
EndpointGroupId:
Description:
en: The ID of the endpoint group
zh-cn: 终端节点ID
Value:
Fn::GetAtt:
- EndpointGroup
- EndpointGroupId
ListenerId:
Description:
en: The ID of the listener
zh-cn: 监听ID
Value:
Fn::GetAtt:
- Listener
- ListenerId
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- AccelerateRegionId
Label:
default:
en: AccelerateRegion
zh-cn: 加速地域
- Parameters:
- EndpointGroupRegion
- EndpointIPs
Label:
default:
en: EndpointGroup
zh-cn: 终端节点
TemplateTags:
- acs:document-help:ga:加速访问指定IP的后端服务