Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ large_scope(ip_address, cidr) {
to_number(input_mask[1]) < 120 # should be 120-128
} else {
input_mask := split(ip_address, "/")
to_number(input_mask[1]) < 25 # should be 25-32
to_number(input_mask[1]) < 24 # should be 24-32
}

exposed_inline_or_standalone_ingress(res, ing_index, type, resource_index) = results { # inline ingresses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ Resources:
GroupDescription: "Ingress for Amazon EC2 security group"
SecurityGroupIngress:
- CidrIp: 1.2.3.4/28
- CidrIp: 10.0.0.0/24

DbSecurityByEC2SecurityGroup2:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: "Ingress for Amazon EC2 security group"
SecurityGroupIngress:
- CidrIpv6: 2001:db8:a::123/121
- CidrIpv6: 2001:db8:a::123/121
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ Resources:
GroupId: !Ref DbSecurityByEC2SecurityGroup1
CidrIp: 1.2.3.4/28

StandaloneIngressIPv4Max256Hosts:
Type: AWS::EC2::SecurityGroupIngress
Properties:
GroupId: !Ref DbSecurityByEC2SecurityGroup1
CidrIp: 10.0.0.0/24

StandaloneIngressIPv6:
Type: AWS::EC2::SecurityGroupIngress
Properties:
Expand Down
Loading