1 00:00:01,150 --> 00:00:05,220 In the last video we installed the Google cloud SDK our local machine. 2 00:00:05,220 --> 00:00:09,240 And remember the entire reason we're doing this is to have it automatically manage these different context 3 00:00:09,240 --> 00:00:10,910 things that are going to teach. 4 00:00:11,020 --> 00:00:13,500 CTO how to connect to different clusters. 5 00:00:14,220 --> 00:00:20,490 So back at my command line I should now be able to run G Cloud like so and see some health information 6 00:00:20,490 --> 00:00:21,300 appear. 7 00:00:21,360 --> 00:00:25,080 If you do not see any help information appear that means there is something wrong with your installation 8 00:00:25,290 --> 00:00:28,950 and you'll need to do a little bit of troubleshooting All right. 9 00:00:28,960 --> 00:00:35,110 And now that we've got Google Cloud installed we're going to first log in to the G Cloud SDK so I can 10 00:00:35,130 --> 00:00:38,160 type out G Cloud off log in 11 00:00:41,340 --> 00:00:45,300 a little window will appear and attempt to log me into my Google account. 12 00:00:45,300 --> 00:00:49,710 You'll need to make sure that you log into the same exact Google account that you used when you first 13 00:00:49,710 --> 00:00:51,690 signed up for the Google Cloud Platform. 14 00:00:51,720 --> 00:00:53,170 A moment ago. 15 00:00:53,400 --> 00:00:56,480 So for me that is my account listed right here so I'll go ahead and click on it. 16 00:00:56,730 --> 00:01:04,030 After I click on that thing and allow I'll then get redirected over to some other page like this right 17 00:01:04,030 --> 00:01:04,730 here. 18 00:01:05,020 --> 00:01:11,520 Once I see this page I can now close it and then go back over to my terminal. 19 00:01:11,630 --> 00:01:17,600 So now logged in to the G Cloud SDK and now we're going to run another command that's going to initialize 20 00:01:17,600 --> 00:01:23,090 the Google cloud SDK and tell it a little bit about our particular project that we're trying to run. 21 00:01:23,330 --> 00:01:27,600 I'm going to run G Cloud in it now. 22 00:01:27,610 --> 00:01:32,670 I've already initialize G Cloud once previously in the past so I'm gonna see some different output here 23 00:01:32,670 --> 00:01:34,700 than what you are probably going to see. 24 00:01:34,710 --> 00:01:40,560 So when I run it I see some stuff that says hey you've already got some configuration and I can either 25 00:01:40,650 --> 00:01:45,180 re initialize a configuration or create a new one you might see something that immediately tries to 26 00:01:45,180 --> 00:01:49,170 take you through the process of creating a configuration. 27 00:01:49,380 --> 00:01:54,060 So if you see something that just says OK that fantastic let's create a new configuration that's great 28 00:01:54,210 --> 00:01:57,570 but for me I'm going to go ahead and click reinitiate as this configuration 29 00:02:00,880 --> 00:02:05,340 once I do so I'll then be prompted to select which account I want to use for the configuration. 30 00:02:05,340 --> 00:02:10,290 So I going to use the account that I just signed in with a moment ago. 31 00:02:10,480 --> 00:02:16,220 Now we'll be given a list of all the different projects that exist inside your Google cloud account. 32 00:02:16,240 --> 00:02:20,290 I have a ton of different projects right now so you'll see a huge list right here. 33 00:02:20,400 --> 00:02:24,950 But for you personally you'll probably see a much smaller list unless you've already used this Google 34 00:02:24,950 --> 00:02:27,190 iCloud account in the past. 35 00:02:27,190 --> 00:02:30,520 You might not immediately see your project listed in here. 36 00:02:30,520 --> 00:02:37,030 That's because we have given our project a name of ticketing dash dev but behind the scenes Google Cloud 37 00:02:37,090 --> 00:02:42,460 has assigned this thing a random identifier so to figure out exactly what your real project name is 38 00:02:42,460 --> 00:02:47,860 you can click on that little project selector up there find your project in a list and then find the 39 00:02:47,860 --> 00:02:53,830 I.D. column on the right hand side so you will see that my actual project I.D. is Pacific destiny blah 40 00:02:53,830 --> 00:02:54,500 blah blah. 41 00:02:54,580 --> 00:03:01,490 Not ticketing dash dev so I can go back over to my project list right here and I'm going to find a civic 42 00:03:01,490 --> 00:03:07,650 destiny and again for you it's very likely going to be something very different so I will see my project 43 00:03:07,650 --> 00:03:08,940 I.D. is right there. 44 00:03:09,000 --> 00:03:15,460 It's number 17 so we are being prompted to enter in the number of our project. 45 00:03:15,460 --> 00:03:18,150 So for me at 17 it's all entering 17. 46 00:03:18,150 --> 00:03:23,950 Like so after that we are being asked to set a default region and zone. 47 00:03:24,080 --> 00:03:25,270 We want to do this. 48 00:03:25,280 --> 00:03:31,880 So we're gonna enter in a yes or Y for yes and we'll be given a big list of regions here. 49 00:03:31,880 --> 00:03:37,010 We're going to find the region that we selected when we created our communities cluster. 50 00:03:37,010 --> 00:03:43,310 Just a moment ago you might recall that I created my cluster in U.S. Central one see if you don't remember 51 00:03:43,310 --> 00:03:44,640 where you created yours. 52 00:03:44,690 --> 00:03:49,310 You can go back to the communities menu by clicking the menu on the top left hand side then going down 53 00:03:49,310 --> 00:03:53,760 to Cooper and engine and clusters and we'll take you back to the screen. 54 00:03:54,050 --> 00:03:56,060 You can then find location right there. 55 00:03:56,060 --> 00:03:57,660 And that is your region. 56 00:03:57,860 --> 00:04:01,610 You're going to find that location on this list and then find the corresponding number. 57 00:04:02,270 --> 00:04:04,210 So for me it was U.S. Central 1 c.. 58 00:04:04,280 --> 00:04:08,900 So my number is 7 if you do not see your number listed on here. 59 00:04:09,040 --> 00:04:13,540 You'll notice in the help options down here there are many more regions available. 60 00:04:13,900 --> 00:04:17,680 And if you don't see yours listed you'll enter in the word list and then hit enter and we'll show you 61 00:04:17,800 --> 00:04:20,540 all the additional regions OK. 62 00:04:20,570 --> 00:04:27,770 So I can enter in number seven in my case and hit enter and that is pretty much it so we have now set 63 00:04:27,770 --> 00:04:32,870 up Google Cloud and we've told it about our account we've logged in we've told it about our project 64 00:04:33,110 --> 00:04:36,050 and we told it about the region that we are connecting to. 65 00:04:36,050 --> 00:04:38,800 Technically it's region and zone are two different things. 66 00:04:38,810 --> 00:04:42,890 But I'm going to use the terms of it interchangeably here because it's just not super relevant for us 67 00:04:43,870 --> 00:04:44,130 OK. 68 00:04:44,160 --> 00:04:51,270 So we've now just configured Google Cloud SDK we have not begun to tell Google Cloud SDK to manage this 69 00:04:51,270 --> 00:04:55,980 context stuff we're gonna take a quick pause right here and then in the next video we will tell Google 70 00:04:55,980 --> 00:05:01,890 cloud and we wanted to handle all this context stuff and tell it tell cube CTO how to connect to our 71 00:05:01,890 --> 00:05:02,340 cluster.