mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
chore(vpc): add mapPublicIpOnLaunch attribute to VPC subnets (#2470)
This commit is contained in:
@@ -294,6 +294,7 @@ class VPC:
|
|||||||
public=public,
|
public=public,
|
||||||
nat_gateway=nat_gateway,
|
nat_gateway=nat_gateway,
|
||||||
tags=subnet.get("Tags"),
|
tags=subnet.get("Tags"),
|
||||||
|
mapPublicIpOnLaunch=subnet["MapPublicIpOnLaunch"],
|
||||||
)
|
)
|
||||||
self.vpc_subnets[subnet["SubnetId"]] = object
|
self.vpc_subnets[subnet["SubnetId"]] = object
|
||||||
# Add it to the VPC object
|
# Add it to the VPC object
|
||||||
@@ -319,6 +320,7 @@ class VpcSubnet(BaseModel):
|
|||||||
public: bool
|
public: bool
|
||||||
nat_gateway: bool
|
nat_gateway: bool
|
||||||
region: str
|
region: str
|
||||||
|
mapPublicIpOnLaunch: bool
|
||||||
tags: Optional[list] = []
|
tags: Optional[list] = []
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ class Test_networkfirewall_in_all_vpc:
|
|||||||
nat_gateway=False,
|
nat_gateway=False,
|
||||||
region=AWS_REGION,
|
region=AWS_REGION,
|
||||||
tags=[],
|
tags=[],
|
||||||
|
mapPublicIpOnLaunch=False,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
tags=[],
|
tags=[],
|
||||||
@@ -171,6 +172,7 @@ class Test_networkfirewall_in_all_vpc:
|
|||||||
nat_gateway=False,
|
nat_gateway=False,
|
||||||
region=AWS_REGION,
|
region=AWS_REGION,
|
||||||
tags=[],
|
tags=[],
|
||||||
|
mapPublicIpOnLaunch=False,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
tags=[],
|
tags=[],
|
||||||
@@ -244,6 +246,7 @@ class Test_networkfirewall_in_all_vpc:
|
|||||||
nat_gateway=False,
|
nat_gateway=False,
|
||||||
region=AWS_REGION,
|
region=AWS_REGION,
|
||||||
tags=[],
|
tags=[],
|
||||||
|
mapPublicIpOnLaunch=False,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
tags=[],
|
tags=[],
|
||||||
@@ -265,6 +268,7 @@ class Test_networkfirewall_in_all_vpc:
|
|||||||
nat_gateway=False,
|
nat_gateway=False,
|
||||||
region=AWS_REGION,
|
region=AWS_REGION,
|
||||||
tags=[],
|
tags=[],
|
||||||
|
mapPublicIpOnLaunch=False,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
tags=[],
|
tags=[],
|
||||||
|
|||||||
Reference in New Issue
Block a user