Anyone see something particularly abhorrent about ...
# google-cloud
m
Anyone see something particularly abhorrent about the below? seeing the attached output:
Copy code
self.network: compute.Network = compute.Network(
            "master-network",
            auto_create_subnetworks=False,
            enable_ula_internal_ipv6=False,
            opts=pulumi.ResourceOptions(parent=self))
        
        self.subnet: compute.subnetwork = compute.Subnetwork(
            "sub-network",
            network=self.network.id,
            ip_cidr_range="10.2.204.0/22",
            private_ip_google_access=True,
            opts=pulumi.ResourceOptions(parent=self.network))
        
        self.nat_addresses: list[compute.Address] = [ 
            compute.Address(
                "gke-public-nat-address-1", 
                address_type="EXTERNAL",
                opts=pulumi.ResourceOptions(parent=self)),
    
            compute.Address(
                "gke-public-nat-address-2", 
                address_type="EXTERNAL",
                opts=pulumi.ResourceOptions(parent=self))
        ]

        self.router: compute.Router = compute.Router(
            "public-egress-router",
            network=self.network.self_link,
            opts=pulumi.ResourceOptions(parent=self)
        )
        
        self.router_nat: compute.RouterNat = compute.RouterNat(
            "public-egress-router-nat",
            router = self.router.id,
            nat_ip_allocate_option="MANUAL_ONLY",
            nat_ips=self.nat_addresses,
            source_subnetwork_ip_ranges_to_nat="ALL_SUBNETWORKS_ALL_IP_RANGES",
            opts=pulumi.ResourceOptions(
                parent=self.router))