forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ga-accelerated-access-to-specified-ip.yml
129 lines (129 loc) · 3.38 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
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AcceleratorId:
Type: String
Label:
en: Accelerator ID
zh-cn: 加速实例ID
BasicBandwidthPackageId:
Type: String
Label:
en: Basic bandwidth package ID
zh-cn: 基础带宽包ID
CrossDomainBandwidthPackageId:
Type: String
Label:
en: cross domain bandwidth package ID
zh-cn: 跨域带宽包ID
EndpointIp:
Type: String
Label:
en: EndpointIp
zh-cn: 终端节点IP
Description:
en: The IP of the backend service that needs to be accelerated.
zh-cn: 需要加速的后端服务的IP。
AllowedPattern: ^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$
Resources:
BasicBandwidthPackageAcceleratorAddition:
Type: ALIYUN::GA::BandwidthPackageAcceleratorAddition
Properties:
BandwidthPackageId:
Ref: BasicBandwidthPackageId
AcceleratorId:
Ref: AcceleratorId
CrossDomainBandwidthPackageAcceleratorAddition:
Type: ALIYUN::GA::BandwidthPackageAcceleratorAddition
Properties:
BandwidthPackageId:
Ref: CrossDomainBandwidthPackageId
AcceleratorId:
Ref: AcceleratorId
DependsOn: BasicBandwidthPackageAcceleratorAddition
IpSets:
Type: ALIYUN::GA::IpSets
Properties:
AccelerateRegion:
- IpVersion: IPv4
Bandwidth: 2
AccelerateRegionId: cn-hangzhou
AcceleratorId:
Ref: AcceleratorId
DependsOn: CrossDomainBandwidthPackageAcceleratorAddition
Listener:
Type: ALIYUN::GA::Listener
Properties:
PortRanges:
- FromPort: 80
ToPort: 81
Protocol: tcp
AcceleratorId:
Ref: AcceleratorId
Name: TrialTutorialListener
ClientAffinity: NONE
DependsOn: IpSets
EndpointGroup:
Type: ALIYUN::GA::EndpointGroup
Properties:
EndpointGroupRegion: ap-southeast-1
AcceleratorId:
Ref: AcceleratorId
EndpointConfigurations:
- Type: Ip
Endpoint:
Ref: EndpointIp
Weight: 100
Name: TrialTutorialEndpointGroup
ListenerId:
Ref: Listener
Outputs:
BasicBandwidthPackageId:
Description:
en: The ID of the basic bandwidth package
zh-cn: 基础带宽包ID
Value:
Fn::GetAtt:
- BasicBandwidthPackageAcceleratorAddition
- BandwidthPackageId
CrossDomainBandwidthPackageId:
Description:
en: The ID of the cross domain bandwidth package
zh-cn: 跨域带宽包ID
Value:
Fn::GetAtt:
- CrossDomainBandwidthPackageAcceleratorAddition
- BandwidthPackageId
AcceleratorId:
Description:
en: The ID of the Global Accelerator instance
zh-cn: 全球加速实例ID
Value:
Fn::GetAtt:
- BasicBandwidthPackageAcceleratorAddition
- 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:
- AcceleratorId
- BasicBandwidthPackageId
- CrossDomainBandwidthPackageId
- EndpointIp
TemplateTags:
- acs:document:试用教程:加速访问指定IP的后端服务