Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Compute Engine Assigning Static IP pricing?

When we assign a static IP to our Compute Engine instance, do we have to pay something extra for that instance or not?

I have read their docs but didn't find anything regarding pricing for the feature.

like image 697
Sudhanshu Gaur Avatar asked Mar 26 '18 22:03

Sudhanshu Gaur


People also ask

Is Google Compute Engine free?

Yes, it is the 'Always Free' tier (almost identical to the Free Tier of AWS): The Google Cloud Platform Free Tier is your opportunity to learn and use GCP for free. It has two parts: a 12-month, $300 credit free trial and Always Free. The 12-month, $300 free trial allows you to use any GCP product.

Does GCP charge for ingress?

Google Cloud Ingress Costs Ingress traffic is usually free of charge, but there are cases where charges are involved. Here's where the hidden costs come in: When using a service that processes ingress traffic such as load balancers, Cloud NAT, or protocol forwarding, charges are applied per GB of traffic.

Does App Engine have static IP?

By default, App Engine services that use Serverless VPC Access only send internal traffic to your VPC network. In order to send traffic with external destinations to your VPC network so that it will have the static IP address that you specified, you must change the egress setting.


2 Answers

UPDATE: Since January 1st, 2020, static and ephemeral external IP are charged $0.004/hour when in use and $0.010 when assigned but unused. Static and ephemeral IP addresses attached to forwarding rules remain uncharged. More info on the official online doc.

The idea behind this change is to reduce global static IP usage and to encourage users to use private VM instances (without static external IP) and expose them to the outside via Cloud NAT, thus reducing the attack surface.


This info is in the online documentation for Compute Engine. It reads:

If you reserve a static external IP address but do not use it, you will be charged for the IP address according to the table below. If you reserve a static external IP address and use it with a Compute Engine resource, such as VM instance or a forwarding rule, the address is considered in use and you will not be charged for it.

like image 143
LundinCast Avatar answered Oct 22 '22 05:10

LundinCast


Static and ephemeral IP addresses in use on standard VM instances are charged $0.004 per hour starting January 1st, 2020. This price is $0.002 per hour on preemptible VM instances:

https://cloud.google.com/compute/all-pricing#ipaddress

https://cloud.google.com/compute/network-pricing#ipaddress

This means that an external IP address is no longer free, even if it is in use and you will have to pay ~2.90 USD per month (or ~1.45 USD per month for preemptible instances) for each IP(v4) address.

Notes:

  • Currently GCP does not provide IPv6 addresses.

  • There was a grace period between 1st of January and 30th of June 2020, where this amount was fully discounted by Google and you did not have to pay it.

  • You can practically use one IP address for free in GCP Free Tier independent of the size of your (non-preemptible) instance:

Google Cloud Free Tier is also available for external IP addresses that are being used by VM instances. In-use external IP addresses are available without additional cost until you have used a number of hours equal to the total hours in the current month. Usage calculations are combined across all in-use external IP addresses across all regions. Google Cloud Free Tier for in-use external IP addresses applies to all non-preemptible instance types, not just f1-micro instances.

like image 26
FedKad Avatar answered Oct 22 '22 07:10

FedKad