Back to Checks
e2enetworks

E2E Networks nodes are attached to a VPC

node_vpc_attached
Service: nodeSeverity: medium
OfficialBuilt-inVerified
Resource Type:NotDefined

E2E Networks nodes should be attached to a VPC so their traffic benefits from network isolation and segmentation controls.

Risk

Nodes not attached to a VPC may lack network isolation controls, making traffic routing and segmentation harder to enforce.

Run this check with Prowler

Run in Prowler Cloud
Run
prowler e2enetworks --checks node_vpc_attached

Recommendation

Attach nodes to a VPC to enforce network isolation and segmentation for their traffic.

Check Code

from prowler.lib.check.models import Check, CheckReportE2eNetworks
from prowler.providers.e2enetworks.services.node.node_client import node_client


class node_vpc_attached(Check):
    """Check if E2E Networks nodes are attached to a VPC."""

    def execute(self) -> list[CheckReportE2eNetworks]:
        findings = []
        for node in node_client.nodes:
            report = CheckReportE2eNetworks(metadata=self.metadata(), resource=node)
            report.status = "PASS"
            report.status_extended = f"Node {node.name} is attached to a VPC."
            if not node.is_vpc_attached:
                report.status = "FAIL"
                report.status_extended = f"Node {node.name} is not attached to a VPC."
            findings.append(report)
        return findings