Any idea whether Google bills for IP that are attached to stopped VMs, and is it the same rate as for an unused IP? (which actually makes sense).
When the instance is stopped it is assumed that eventually it will be started again. As such, the static IP is still attached to an instance and will not be charged. You can go through this link which has information about the static IP charges.
- Static IP address (assigned but unused) - $0.010 / h
- Static IP address (assigned and in use) - No charge
- Ephemeral IP address (attached to instance or forwarding rule) - No charge
Find out unused:
bash# gcloud compute addresses list NAME REGION ADDRESS STATUS artifactory-2-vm europe-west1 10.132.x.x IN_USE artifactory-2-vm-pub europe-west1 35.210.x.x RESERVED artifactory-2-vm-public europe-west1 35.210.x.x IN_USE
gcloud compute addresses delete artifactory-2-vm-pub --region=europe-west1