I’m able to create an vm instances. But havent been successful in adding the ssh for the instance.
Source Code(Node js):
class MyStack extends TerraformStack {
constructor(scope: Construct, name: string) {
super(scope, name);
const credentials = fs.readFileSync(credential.json).toString();
new GoogleProvider(this, "Google", {
region: "us-central1",
zone: "us-central1-a",
project: "project",
credentials,
});
new ComputeInstance(this, "ComputeInstance", {
name: name,
machineType: "f1-micro",
bootDisk: {
initializeParams: {
image: "debian-cloud/debian-9",
},
},
networkInterface: [
{
network: "default",
},
],
tags: ["web", "dev"],
});
}
}