Does GCP charge for external static IP? - google-compute-engine

Google Cloud offers a free tier which includes Compute Engine. If I setup a static external IP on this instance, will I be charged, or will I be covered by the free tier?

In the Official Google Cloud Free Program documentation, it states under Free Tier usage limit for Compute Engine,
Google Cloud Free Tier does not include external IP addresses. same as using a GPU for your instance. Meaning you won't be able to change/update it (in-use External IP addresses for f1-micro instance).
Also, take note on this one:
Free Tier: All Google Cloud customers can use select Google Cloud
products—like Compute Engine, Cloud Storage, and BigQuery—free of
charge, within specified monthly usage limits. When you stay within
the Free Tier limits, these resources are not charged against your
Free Trial credits or to your Cloud Billing account's payment method
after your trial ends.

Related

Free tier compute engine deploy is charging values on GCP

How can i configure a free tier compute engine?
https://cloud.google.com/free/docs/gcp-free-tier/#compute
You are doing it right. The instance will show on the billing as charged for, but it's deducted from the monthly bill if you did everything correctly. Just create the instance and check if Subtotal stays 0.00. The rest of the billing is irrelevant to you if you do not have any other resources.
To view the page I screencapped go to "View Detailed Charges" from the Dashboard of your project.
The link you shared has all the info you need to create the instance with the free "specs".

Cannot find the Always Free Eligible VM Instance when creating it

I wanted to create a Always Free Eligible VM Instance (VM.Standard.E2.1.Micro) on the Oracle Cloud, but it's not on my list.
And when I check my limit for VM.Standard.E2.1.Micro in
"Governance > Limits, Quotas and Usage", it say 0.
How can I create one? My Home Region is Canada Southeast (Montreal), ca-montreal-1.
My account's trial is not over yet. Should I wait till my trial is over to create it?
As per the Always Free website, at any time you can have up to the following:
Two Oracle Autonomous Databases with powerful tools like Oracle Application Express (APEX) and Oracle SQL Developer
Two Oracle Cloud Infrastructure Compute VMs; Block, Object, and Archive Storage; Load Balancer and data egress; Monitoring and Notifications
If you already are at capacity for this, then you would not be able to add an additional. Further details of Always Free resources can be found here - https://docs.oracle.com/en-us/iaas/Content/FreeTier/resourceref.htm
The always free provide you with the following
2 Compute virtual machines with 1/8 OCPU and 1 GB memory each.
2 Block Volumes Storage
100 GB total.
10 GB Object Storage.
10 GB Archive Storage.
Resource Manager: managed Terraform.
Focus on the specs of the free one
VM.Standard.E2.1.Micro is not available for ca-montreal-1 at this time (January 2021).
I created a new account in the Ashburn region where VM.Standard.E2.1.Micro is available.

Isn't Google App Engine suppose to be more expensive than Google Kubernetes engine

I had my app in the app engine(Flex). But it's costing a lot with no traffic yet!
I decided to move that to Kubernetes Engine which utilizes the compute engine.
Another reason I moved to Kubernetes because I wanted to run docker container services like Memcached that come with an added cost in App Engine Flex.
If you are tempted to ask why am not using App Engine Standard which is economical, that's because I couldn't find any easy way if at all there's any for running services like GDAL & Memcached.
I thought Kubernetes should be a cheaper option, but what I am seeing is the opposite.
I have even had to change the machine type to g1-small from N1...
Am I missing something?
Any ideas on how to reduce cost in Kubernetes / compute engine instances?
Please have a look at the documentation GKE Pricing and App Engine Pricing:
GKE clusters accrue a management fee of $0.10 per cluster per hour,
irrespective of cluster size or topology. One zonal (single-zone or
multi-zonal) cluster per billing account is free.
GKE uses Compute Engine instances for worker nodes in the cluster. You
are billed for each of those instances according to Compute Engine's
pricing, until the nodes are deleted. Compute Engine resources are
billed on a per-second basis with a one-minute minimum usage cost.
and
Apps running in the flexible environment are deployed to virtual
machine types that you specify. These virtual machine resources are
billed on a per-second basis with a 1 minute minimum usage cost.
Billing for the memory resource includes the memory your app uses plus
the memory that the runtime itself needs to run your app. This means
your memory usage and costs can be higher than the maximum memory you
request for your app.
So, both GAE Flex and GKE cluster are "billed on a per-second basis with a 1 minute minimum usage cost".
To estimate usage cost in advance you can use Google Cloud Pricing Calculator, also you can use it to estimate how changing parameters of your cluster can help you to reduce cost and which solution is more cost effective.
In addition, please have a look at the documentation Best practices for running cost-optimized Kubernetes applications on GKE.

How do you store API tokens securely?

When user enter their API token on the browser, I need securely save their token. What is good approach to encrypt user's token?
I wax considering using AWS Secrets Manager to store User's token through API but it turn out it is really expensive. $0.40 per secret per month.
I might consider encrypting user token in the MySQL and store master secret in the .env file
Is there alternative approach?
Since you're already using AWS services it makes sense to take advantage of more resilient cloud-native solutions.
With SSM you only pay for your underlying AWS resources managed or created by AWS Systems Manager, however, parameter store as well as the majority of other AWS services using KMS for decryption and encryption purposes.
Additional alternatives:
Cache SSM params for instance https://github.com/alexcasalboni/ssm-cache-python
Use credstash (dynamodb + kms)
Use s3 with server and client side encryption https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingEncryption.html
Based on your usage you will need to do the math, KMS is not free, but has a decent monthly free tier
For your scenario, you can save the token AWS DynamoDB, encrypted at rest with AWS KMS.
In addition to the Lambda charges, AWS KMS will mainly cost $1 for CMK, and based on the on-demand encryption and decryption operations about $0.03 per 10,000 requests and the free tier will give 20,000 requests/month free of charge.
For more details about pricing, refer AWS KMS pricing section.

google-compute-engine - Virtual Machines and billing

When i clicked through my google cloud console yesterday, i found 26 virtual machines that i disabled then (because i think that i don´t use these - but i pay for them).
I use firebase, firestore, firestorage, firebase cloud functions and
app-engine / flex-engine for php and python cron-jobs.
But today, there are 26 more vms up and running and my bill goes up. Can I disable / delete these machines and disable building new ones or disable the google-compute-engine overall?
According to our documentation about Billing for stopped instances:
Your instances are not charged for per-second usage charges in TERMINATED state but any resources attached to the virtual machine will be charged until they are deleted, such as static IPs and persistent disks.
The link1 will also provide you with details about the state of resources for stopped instances.
For more pricing information. I would recommend that you visit the following links:
1- Google Compute Engine Pricing.
2- Pricing details on each GCP product.
To know how to manage and modify your project billing settings and many more. Visit our cloud billing documentation.