Reputation: 35703
I create multiple VMs via node.js API in the same zone from the same image. The API response seems fine. But I can only see 2 VMs in the google cloud console. Is this a bug? Am I doing something wrong?
// this is called multiple times with different vmNames:
const Compute = require('@google-cloud/compute');
const compute = new Compute();
const zone = compute.zone('us-central1-a');
await zone.createVM(vmName, config).then(async (data) => {
const vm = data[0];
const operation = data[1];
const apiResponse = data[2];
var vmid = data[2].id;
console.log('created vm ' + vmid); // is called multiple times, but in reality only 2 VMs are created
});
Seems that I exceed my quota.
quotaExceeded "IN_USE_ADDRESSES" limit 8
But why and what can I do?
Upvotes: 0
Views: 94
Reputation: 301
As stated before, you might need to request a quota increase for your Google Project.
Also, here is the information regarding quota increase and external IP addresses.
In-use external IP addresses include both ephemeral and static IP addresses that are currently being used by a resource.
If the same IP address is assigned to more than one forwarding rule, Google Cloud counts and adds each usage of the address towards the IN_USE_ADDRESSES quota rather than a unique count of IP address objects that are used.
Here is a detailed guide on how to request a quota increase for the IP’s
Upvotes: 1