-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating SecurityGroup / Ingress Spec (#27)
* Updating SecurityGroup / Ingress Spec to allow From/To to be conditional per AWS CFT Specs * Update cfn_parser_security_group_spec.rb * Fixing Merge format. * Update security_group.rb
- Loading branch information
Showing
12 changed files
with
245 additions
and
6 deletions.
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
21 changes: 21 additions & 0 deletions
21
...st_templates/json/security_group/valid_security_group_with_single_egress_ip_protocol.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,21 @@ | ||
{ | ||
"Parameters": { | ||
"VpcId": { | ||
"Type": "AWS::EC2::VPC::Id" | ||
} | ||
}, | ||
|
||
"Resources": { | ||
"sg3": { | ||
"Type" : "AWS::EC2::SecurityGroup", | ||
"Properties" : { | ||
"GroupDescription" : "some_group_desc", | ||
"SecurityGroupEgress" : { | ||
"CidrIp": "10.1.2.3/32", | ||
"IpProtocol": "-1" | ||
}, | ||
"VpcId" : { "Ref": "VpcId" } | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...t_templates/json/security_group/valid_security_group_with_single_ingress_ip_protocol.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,21 @@ | ||
{ | ||
"Parameters": { | ||
"VpcId": { | ||
"Type": "AWS::EC2::VPC::Id" | ||
} | ||
}, | ||
|
||
"Resources": { | ||
"sg3": { | ||
"Type" : "AWS::EC2::SecurityGroup", | ||
"Properties" : { | ||
"GroupDescription" : "some_group_desc", | ||
"SecurityGroupIngress" : { | ||
"CidrIp": "10.1.2.3/32", | ||
"IpProtocol": "-1" | ||
}, | ||
"VpcId" : { "Ref": "VpcId" } | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
spec/test_templates/json/security_group/valid_standalone_egress_ipprotocol.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 @@ | ||
{ | ||
"Parameters": { | ||
"VpcId": { | ||
"Type": "AWS::EC2::VPC::Id" | ||
} | ||
}, | ||
|
||
"Resources": { | ||
"sgi3": { | ||
"Type": "AWS::EC2::SecurityGroupEgress", | ||
"Properties": { | ||
"GroupId": "group1", | ||
"CidrIp": "10.1.2.3/32", | ||
"IpProtocol": "-1" | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
spec/test_templates/json/security_group/valid_standalone_ingress_ipprotocol.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 @@ | ||
{ | ||
"Parameters": { | ||
"VpcId": { | ||
"Type": "AWS::EC2::VPC::Id" | ||
} | ||
}, | ||
|
||
"Resources": { | ||
"sgi3": { | ||
"Type": "AWS::EC2::SecurityGroupIngress", | ||
"Properties": { | ||
"GroupId": "group1", | ||
"CidrIp": "10.1.2.3/32", | ||
"IpProtocol": "-1" | ||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...est_templates/yaml/security_group/valid_security_group_with_single_egress_ip_protocol.yml
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,15 @@ | ||
--- | ||
Parameters: | ||
VpcId: | ||
Type: "AWS::EC2::VPC::Id" | ||
|
||
Resources: | ||
sg3: | ||
Type: "AWS::EC2::SecurityGroup" | ||
Properties: | ||
GroupDescription: "some_group_desc" | ||
SecurityGroupEgress: | ||
CidrIp: "10.1.2.3/32" | ||
IpProtocol: '-1' | ||
VpcId: | ||
Ref: VpcId |
15 changes: 15 additions & 0 deletions
15
...st_templates/yaml/security_group/valid_security_group_with_single_ingress_ip_protocol.yml
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,15 @@ | ||
--- | ||
Parameters: | ||
VpcId: | ||
Type: "AWS::EC2::VPC::Id" | ||
|
||
Resources: | ||
sg3: | ||
Type: "AWS::EC2::SecurityGroup" | ||
Properties: | ||
GroupDescription: "some_group_desc" | ||
SecurityGroupIngress: | ||
CidrIp: "10.1.2.3/32" | ||
IpProtocol: '-1' | ||
VpcId: | ||
Ref: VpcId |
8 changes: 8 additions & 0 deletions
8
spec/test_templates/yaml/security_group/valid_standalone_egress_ipprotocol.yml
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,8 @@ | ||
--- | ||
Resources: | ||
sgi3: | ||
Type: "AWS::EC2::SecurityGroupEgress" | ||
Properties: | ||
GroupId: 'group1' | ||
CidrIp: "10.1.2.3/32" | ||
IpProtocol: '-1' |
8 changes: 8 additions & 0 deletions
8
spec/test_templates/yaml/security_group/valid_standalone_ingress_ipprotocol.yml
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,8 @@ | ||
--- | ||
Resources: | ||
sgi3: | ||
Type: "AWS::EC2::SecurityGroupIngress" | ||
Properties: | ||
GroupId: 'group1' | ||
CidrIp: "10.1.2.3/32" | ||
IpProtocol: '-1' |