From the course: Leveraging Google Cloud Developer and DevOps Tools

Coding with the GCP local Google Cloud SDK

- [Instructor] In this section of movies, we'll be talking about GCP tools for developers. We're going to look at the GCP add-in for the editor VSCode. There are others, but that's the one I'm using, so I'll share with you. Using cloud source repos or repositories for code. Using the artifact registry. Using the Secrets Manager service. And seeing full continuous integration and continuous deployment using the Cloud Build service as our underlying service that we're implementing CI and CD. We'll be working with the Cloud Run service with Cloud Build here as well. So again, I'm just giving you a sampling, basically my favorite tools in GCP. Now, the type of tools that you work with to write scripts depend on how you work. As I've been showing frequently in this course, I most often use the included cloud shell tool to generate my G Cloud scripts because I'm working in the early phases of application projects, building POCs, and trying out technologies. Just for being complete, I want to also mention the ability to take the Google Cloud software development kit and install the client locally. This is not something that I generally do. I tend to work at the cloud in the cloud, but I know a lot of people do it. So I've got this link, and you can just copy this link for the aggregate information. The install process depends on what kind of operating system you have. So you want to follow the link that is shown on the install. I only have Macs myself. And so, some tips for Mac is I generally like to use the Homebrew Package Manager. And there's a medium article that is really well written that I've linked here. Once you have the client installed locally, then you're going to open a terminal if you're in Mac or a command window if you're in Windows, and so on and so forth. So I'll show you what that looks like. I'm going to go ahead and make this full screen. And you would validate that you have the appropriate version. One of the things, when you are working locally, you want to manually update. This is not necessary as often when you're working in the cloud shell, 'cause Google will update it. And it's really important, especially if we're working with newer APIs, that you are having the right version. There's various commands you can use to understand the versions of the APIs that are installed in your SDK. And G Cloud info was one of those. So you can see, this tells detailed information about where and how you've installed. And this is going to vary depending on how you've done your install. Now you're going to have to authenticate. So to do that, you go G Cloud auth space login, and then it's going to take you out to an account to authenticate, and then you're going to select Authenticate. And then once you're authenticated, you're going to go back to your terminal. And what has happened is you can see, after G Cloud auth login, this browser window automatically popped up and there was a key exchange that was done. Then you can set your project that you're working with with the command shown here, G Cloud config set project project ID. So I'll do that. And then you can run your command, such as GS util, and get a list of your buckets for example. And there's a list of all the buckets. Again, this is not something I use, because I don't like to keep it updated, and I don't like to install stuff on my machine, but it's something that I know a lot of customers use. So I wanted to be complete and include it in this course as well. And then just to round this out from this link list, I really recommend this cheat sheet. And here it is. This will give you all the getting started, all the help commands, so on and so forth. It's just pretty useful. So when you're using G Cloud, either locally or with cloud shell, this cheat sheet I've found to be pretty useful. So I wanted to share it in this movie.

Contents