forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
acl.yml
99 lines (99 loc) · 2.11 KB
/
acl.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
ROSTemplateFormatVersion: '2015-09-01'
Description: SAG ACL/ACLRule/ACLAssociation resource example
Parameters:
ACLName:
Type: String
Direction:
Type: String
Description: 'Regular direction.Value: in|out'
AllowedValues:
- in
- out
Policy:
Type: String
AllowedValues:
- accept
- drop
DestCidr:
Type: String
Description: Destination address, CIDR format and IP address range in IPv4 format.
DestPortRange:
Type: String
Description: Destination port range, 80/80.
SourceCidr:
Type: String
Description: Source address, CIDR format and IP address range in IPv4 format.
SourcePortRange:
Type: String
Description: Source port range, 80/80.
RuleDescription:
Type: String
Default: null
MinLength: 1
MaxLength: 512
Priority:
Type: Number
Description: 'Priority, ranging from 1 to 100.Default: 1'
Default: 1
MinValue: 1
MaxValue: 100
IpProtocol:
Type: String
Description: Protocol, not case sensitive.
Default: tcp
SmartAGId:
Type: String
Description: An intelligent gateway instance that needs to bind access control.
Resources:
ACL:
Type: ALIYUN::SAG::ACL
Properties:
Name:
Ref: ACLName
ACLRule:
Type: ALIYUN::SAG::ACLRule
Properties:
Policy:
Ref: Policy
Description:
Ref: RuleDescription
DestCidr:
Ref: DestCidr
SourcePortRange:
Ref: SourcePortRange
SourceCidr:
Ref: SourceCidr
Priority:
Ref: Priority
AclId:
Fn::GetAtt:
- ACL
- AclId
IpProtocol:
Ref: IpProtocol
DestPortRange:
Ref: DestPortRange
Direction:
Ref: Direction
DependsOn: ACL
ACLAssociation:
Type: ALIYUN::SAG::ACLAssociation
Properties:
SmartAGId:
Ref: SmartAGId
AclId:
Ref: ACL
DependsOn: ACLRule
Outputs:
AclId:
Description: Access control set ID.
Value:
Fn::GetAtt:
- ACL
- AclId
AcrId:
Description: Access control rule ID.
Value:
Fn::GetAtt:
- ACLRule
- AcrId