Skip to content

Commit 43c21b6

Browse files
Merge pull request #68 from jinyoungmoonDEV/master
fix: add ec2>security_group inbound_rule PrefixListIds field
2 parents b488e06 + 5957bdd commit 43c21b6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/plugin/manager/ec2/security_group_manager.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ def create_cloud_service(self, region, options, secret_data, schema):
8989
)
9090
)
9191

92+
for prefix_list_id in in_rule.get("PrefixListIds", []):
93+
in_rule_copy = copy.deepcopy(in_rule)
94+
inbound_rules.append(
95+
self.custom_security_group_inbound_rule_info(
96+
in_rule_copy, prefix_list_id, "prefix_list_ids",vulnerable_ports
97+
)
98+
)
99+
92100
# Outbound Rules
93101
outbound_rules = []
94102
for out_rule in raw.get("IpPermissionsEgress", []):
@@ -294,6 +302,8 @@ def _get_source_display(remote):
294302
return group_id
295303
elif cidrv6 := remote.get("CidrIpv6"):
296304
return cidrv6
305+
elif prefix_list_id := remote.get("PrefixListId"):
306+
return prefix_list_id
297307

298308
return ""
299309

0 commit comments

Comments
 (0)