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