forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instance-endpoint-acl-policy.yml
58 lines (58 loc) · 1.67 KB
/
instance-endpoint-acl-policy.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
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建CR实例端点访问控制策略,配置指定模块的白名单,允许特定IP范围访问。
en: Create a CR instance endpoint access control policy to configure the whitelist
for specified modules, allowing access from specific IP ranges.
Parameters:
Comment:
Type: String
Description: The description of the entry.
Default: Test white list
ModuleName:
Type: String
Description: The name of the module in the instance for which a whitelist is configured.
Default: Registry
AllowedValues:
- Registry
- Chart
InstanceId:
Type: String
Description: The ID of the instance. <a href="https://api.aliyun.com/#/?product=cr&version=2018-12-01&api=ListInstance&tab=DEMO&lang=JAVA">Inquire
Instance</a>
EndpointType:
Type: String
Description: The type of the endpoint.
Default: internet
Entry:
Type: String
Description: The IP address range that is allowed to access the instance.
Default: 192.168.1.1/32
Resources:
InstanceEndpointAclPolicy:
Type: ALIYUN::CR::InstanceEndpointAclPolicy
Properties:
InstanceId:
Ref: InstanceId
Comment:
Ref: Comment
ModuleName:
Ref: ModuleName
RegionId:
Ref: ALIYUN::Region
EndpointType:
Ref: EndpointType
Entry:
Ref: Entry
Outputs:
InstanceId:
Description: The ID of the instance.
Value:
Fn::GetAtt:
- InstanceEndpointAclPolicy
- InstanceId
Entry:
Description: The IP address range that is allowed to access the instance.
Value:
Fn::GetAtt:
- InstanceEndpointAclPolicy
- Entry