In the last video we installed the Google cloud SDK our local machine.
And remember the entire reason we're doing this is to have it automatically manage these different context
things that are going to teach.
CTO how to connect to different clusters.
So back at my command line I should now be able to run G Cloud like so and see some health information
appear.
If you do not see any help information appear that means there is something wrong with your installation
and you'll need to do a little bit of troubleshooting All right.
And now that we've got Google Cloud installed we're going to first log in to the G Cloud SDK so I can
type out G Cloud off log in
a little window will appear and attempt to log me into my Google account.
You'll need to make sure that you log into the same exact Google account that you used when you first
signed up for the Google Cloud Platform.
A moment ago.
So for me that is my account listed right here so I'll go ahead and click on it.
After I click on that thing and allow I'll then get redirected over to some other page like this right
here.
Once I see this page I can now close it and then go back over to my terminal.
So now logged in to the G Cloud SDK and now we're going to run another command that's going to initialize
the Google cloud SDK and tell it a little bit about our particular project that we're trying to run.
I'm going to run G Cloud in it now.
I've already initialize G Cloud once previously in the past so I'm gonna see some different output here
than what you are probably going to see.
So when I run it I see some stuff that says hey you've already got some configuration and I can either
re initialize a configuration or create a new one you might see something that immediately tries to
take you through the process of creating a configuration.
So if you see something that just says OK that fantastic let's create a new configuration that's great
but for me I'm going to go ahead and click reinitiate as this configuration
once I do so I'll then be prompted to select which account I want to use for the configuration.
So I going to use the account that I just signed in with a moment ago.
Now we'll be given a list of all the different projects that exist inside your Google cloud account.
I have a ton of different projects right now so you'll see a huge list right here.
But for you personally you'll probably see a much smaller list unless you've already used this Google
iCloud account in the past.
You might not immediately see your project listed in here.
That's because we have given our project a name of ticketing dash dev but behind the scenes Google Cloud
has assigned this thing a random identifier so to figure out exactly what your real project name is
you can click on that little project selector up there find your project in a list and then find the
I.D. column on the right hand side so you will see that my actual project I.D. is Pacific destiny blah
blah blah.
Not ticketing dash dev so I can go back over to my project list right here and I'm going to find a civic
destiny and again for you it's very likely going to be something very different so I will see my project
I.D. is right there.
It's number 17 so we are being prompted to enter in the number of our project.
So for me at 17 it's all entering 17.
Like so after that we are being asked to set a default region and zone.
We want to do this.
So we're gonna enter in a yes or Y for yes and we'll be given a big list of regions here.
We're going to find the region that we selected when we created our communities cluster.
Just a moment ago you might recall that I created my cluster in U.S. Central one see if you don't remember
where you created yours.
You can go back to the communities menu by clicking the menu on the top left hand side then going down
to Cooper and engine and clusters and we'll take you back to the screen.
You can then find location right there.
And that is your region.
You're going to find that location on this list and then find the corresponding number.
So for me it was U.S. Central 1 c..
So my number is 7 if you do not see your number listed on here.
You'll notice in the help options down here there are many more regions available.
And if you don't see yours listed you'll enter in the word list and then hit enter and we'll show you
all the additional regions OK.
So I can enter in number seven in my case and hit enter and that is pretty much it so we have now set
up Google Cloud and we've told it about our account we've logged in we've told it about our project
and we told it about the region that we are connecting to.
Technically it's region and zone are two different things.
But I'm going to use the terms of it interchangeably here because it's just not super relevant for us
OK.
So we've now just configured Google Cloud SDK we have not begun to tell Google Cloud SDK to manage this
context stuff we're gonna take a quick pause right here and then in the next video we will tell Google
cloud and we wanted to handle all this context stuff and tell it tell cube CTO how to connect to our
cluster.