Book Image

Building Google Cloud Platform Solutions

By : Ted Hunter, Steven Porter, Legorie Rajan PS
Book Image

Building Google Cloud Platform Solutions

By: Ted Hunter, Steven Porter, Legorie Rajan PS

Overview of this book

GCP is a cloud computing platform with a wide range of products and services that enable you to build and deploy cloud-hosted applications. This Learning Path will guide you in using GCP and designing, deploying, and managing applications on Google Cloud. You will get started by learning how to use App Engine to access Google's scalable hosting and build software that runs on this framework. With the help of Google Compute Engine, you’ll be able to host your workload on virtual machine instances. The later chapters will help you to explore ways to implement authentication and security, Cloud APIs, and command-line and deployment management. As you hone your skills, you’ll understand how to integrate your new applications with various data solutions on GCP, including Cloud SQL, Bigtable, and Cloud Storage. Following this, the book will teach you how to streamline your workflow with tools, including Source Repositories, Container Builder, and Stackdriver. You'll also understand how to deploy and debug services with IntelliJ, implement continuous delivery pipelines, and configure robust monitoring and alerts for your production systems. By the end of this Learning Path, you'll be well versed with GCP’s development tools and be able to develop, deploy, and manage highly scalable and reliable applications. This Learning Path includes content from the following Packt products: • Google Cloud Platform for Developers Ted Hunter and Steven Porter • Google Cloud Platform Cookbook by Legorie Rajan PS
Table of Contents (29 chapters)
Title Page
Copyright and Credits
About Packt
Contributors
Preface
Index

Automating tasks with gcloud


A large part of building effective development and operations workflows is automation. For repetitive tasks, automation means reducing toil and lowering the likelihood of making careless mistakes. Google is very big on task automation, and the need to automate tasks plays a big role in how Google approaches designing tools and services. The gcloud tool is often a central component for automating tasks involving Google Cloud Platform, and its developers have made sure that it fits this role well.

As mentioned earlier in this chapter, gcloud is capable of handling authorization via both user credentials and service accounts. When it comes to automation, service account authorization is the preferred method. This is true for a few reasons:

  • User account authorization tokens expire
  • A service account can be limited to permissions needed for a specific task
  • Compromised service accounts are more easily rectified

A good first step when automating a task for GCP is to create...