sparse-intern-71089
10/20/2022, 3:45 PMtall-crowd-93084
10/20/2022, 3:47 PMconst node1 = new hcloud.Server("node1", {
image: "debian-9",
serverType: "cx11",
});
const mynet = new hcloud.Network("mynet", {ipRange: "10.0.0.0/8"});
const foonet = new hcloud.NetworkSubnet("foonet", {
networkId: mynet.id,
type: "cloud",
networkZone: "eu-central",
ipRange: "10.0.1.0/24",
});
const srvnetwork = new hcloud.ServerNetwork("srvnetwork", {
serverId: node1.id,
networkId: mynet.id,
ip: "10.0.1.5",
});
I'm getting errors like Type 'Output<string>' is not assignable to type 'Input<number>'.
anywhere I'm trying to pass ids like networkId: mynet.id
tall-crowd-93084
10/20/2022, 4:07 PMtall-crowd-93084
10/20/2022, 4:11 PM.apply(parseInt)
trick mentioned there seems to work 🙂