-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support to EC2 rules for use case where ports are not defined in …
…the template (#215) * Add support to for use cases where ports are not defined in the CloudFormation template. By default, this means all ports are included * Add MIN_PORT_NUMBER constant Co-authored-by: Oliver Crawford <oliver.crawford@skyscanner.net> Co-authored-by: Oscar Blanco <oscarbc1996@gmail.com>
- Loading branch information
1 parent
1372d5a
commit 59bfb22
Showing
5 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...plates/rules/EC2SecurityGroupOpenToWorldRule/invalid_security_group_no_ports_defined.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Resources": { | ||
"SecurityGroup": { | ||
"Type": "AWS::EC2::SecurityGroup", | ||
"Properties": { | ||
"GroupDescription": "description", | ||
"SecurityGroupIngress": [ | ||
{ | ||
"Description": "Some Office IP", | ||
"IpProtocol": "-1", | ||
"CidrIp": "23.45.67.88/29" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |