Hello and welcome to the SAP HANA Academy.
The topic of this video tutorial series is Getting Started with SAP HANA on the
Google Cloud Platform and in this video we will discuss projects.
Hi, I am Denys van Kempen.
Before we get started we need to briefly discuss the concepts of projects on Google Cloud Platform.
as it used a bit different then, for example, on Amazon Web Services (AWS) or Microsoft Azure.
When you are developing an app
projects are typically used to bundle all your development work
and this is also the way you would use a project in AWS or Azure
On the Google Cloud Platform, a project is used as a more base-level organizing entity.
What does that mean? Well, without a project you cannot really do anything useful.
A side-effect is that without a project, you won't be charged for anything either.
So, if you are doing just some testing or learning
and it is Friday afternoon and you quickly want to wrap up and go fishing
Just delete your project, all your work will be gone but you won't get any surprise bills
Monday morning either.
So, that's good to know, very convenient.
To create a new project, select the project identifier in the toolbar
and in the pop up screen, select the plus.
If you are connected for the first time, you will be prompted to create a project.
If you are using the free trial, you will get this info bar with the number of remaining projects that you can create.
The trial has a quota of six projects
which, I guess, should be enough.
Then, each project needs to have a name
enter any name you want
and each project has a project ID
which needs to be globally unique and you cannot change it afterwards.
Google generates some random words with a number appended
if you don't like the one proposed click edit a request a new one
until there is one that you like or just enter it yourself but remember it needs to be globally unique.
Click Create.
and then after a couple of seconds, we get the Dashboard view
with a card about the project. This is the Home view.
Click the menu and select Home: you will get the same view.
Note that the project now also has a number.
This is generated automatically.
So we have a project name, any name we want, and a project ID and number
which are used as the real identifiers and are globally unique.
You can select 'Go to project settings'
and this will open the 'IAM & Admin > Settings' page
Here you can change the name of the project
change it as often as you wish
and shut it down.
When you shut down a project, you delete all resources attached to it.
So, for example, if we open a Cloud shell and create a VM
gcloud compute instances create instance-test
with the zone europe-west1-b
which happens to be roughly where I am working
Now, don't worry about the syntax. We will look into this in another video.
It is just a quick way to create a virtual machine.
Note that we are first prompted to enable the API compute-component
This is on a per project base.
So, you need to explicitly enable an API
and once you have done so, now this project can be billed for it.
and after some time we have our VM.
If we go back to our dashboard
We see it on Resources
1 Compute Engine
Menu > Products & Services > Compute Engine
and the section Compute VM instances.
If we now return to our project
IAM & Admin > Settings
and select SHUT DOWN
we get this pop up
When you shut down a project, this immediately happens
all billing and traffic serving stops
and you lose access to the entire project
then you need to enter the project ID manually
just in case you left the console open
and your 3-year old is trying out your mouse
and only then we have the SHUT DOWN option
We get a 'Project is pending deletion' message
It will still be there for a while, it is kept in archive for a month or so
but it is gone from our view
What happened to our VM?
gcloud compute instances list
Error: failed to find project. It is gone.
So we can no longer connect to it but we won't be charged for it either.
Let's close the console.
Create a new project.
Let's also briefly look at billing.
Select the menu and then Billing.
On the Overview you can see the projects linked to your billing account
Select the ellipses and here you can also disable billing
You will get a warning: resources may be deleted.
(or I guess, maybe not)
and then to use it, you need to enable billing for this project again.
So, for test and training this may also work if you care more about billing then about the resources.
Also note the menu item here: Budgets and Alerts
Here you can set alerts if you want
so you get an email when certain thresholds are reached
also interesting is the Transaction menu
Here you can view your invoices
Now, I am here on the $300 trial
we talked about this in the previous video
So, now worries, but you can see here, for example
That I am charged 72 cents for 81 hours usage of a fixed IP.
So, now you know where all the money goes.
OK. That's all we need to know for now about projects.
You need to create one before you can get started.
Give it any name you want with a globally unique identifier
and then when you create a resource
you will be prompted to enable the API first
and then in the context of a project any billing for that resource will occur.
So, if you want to be 100% sure to get no bills,
just shut down, delete that is, the project
or at least disable billing for that project.
Of course, this only applies when you are in learning mode, or testing
Once you are are running in production, you will need to do some monitoring on cost
set up alerts and maybe define a billing administrator
Now, of course, there is more to projects. There is also the notion of organization and privileges
Who can do what?
but we can look at that later
For now, this is all you need to know to get started
In the next video we will create our first HANA server. It is easy.
You can find more video tutorials on our YouTube channel.
If you would like to be informed about new video tutorials, please subscribe to our channel.
You can connect with us on LinkedIn or follow us on Twitter, as well for updates.
And we also have a page on Facebook and Google+.
If you are watching this video on YouTube, do not hesitate to leave your comments to the video page and,
if you like, give us your vote on his video.
Thank you for watching.