AWSTemplateFormatVersion: 2010-09-09 Description: "Test if NetworkACL has rule repeats (if they are the same type)" Resources: NetworkACL: Type: AWS::EC2::NetworkAcl Properties: VpcId: vpc-1122334455aabbccd Tags: - Key: Name Value: NACLforSSHTraffic InboundRule: Type: AWS::EC2::NetworkAclEntry Properties: NetworkAclId: Ref: NetworkACL RuleNumber: 100 Protocol: 6 RuleAction: allow CidrBlock: 172.16.0.0/24 PortRange: From: 22 To: 22 InboundRule2: Type: AWS::EC2::NetworkAclEntry Properties: NetworkAclId: Ref: NetworkACL RuleNumber: 100 Protocol: 6 RuleAction: allow CidrBlock: 172.16.0.0/24 PortRange: From: 22 To: 22 OutboundRule: Type: AWS::EC2::NetworkAclEntry Properties: NetworkAclId: Ref: NetworkACL RuleNumber: 100 Protocol: -1 Egress: True RuleAction: allow CidrBlock: 0.0.0.0/0 OutboundRule2: Type: AWS::EC2::NetworkAclEntry Properties: NetworkAclId: Ref: NetworkACL RuleNumber: 100 Protocol: -1 Egress: True RuleAction: allow CidrBlock: 0.0.0.0/0