𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Terraform for Google Cloud Essential Guide: Learn How to Provision Infrastructure in Google Cloud Securely and Efficiently

✍ Scribed by Bernd Nordhausen


Publisher
Packt Publishing
Year
2023
Tongue
English
Leaves
180
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Become an expert in Terraform on Google Cloud by using Infrastructure as Code for provisioning multiple yet consistent environments to increase productivity in no time Key Features: Get up and running with Terraform on Google Cloud Learn Terraform concepts using Google Cloud code examples Apply Terraform to deploy realistic multi-tiered architectures quickly and repeatedly Book Description: Google Cloud has adopted Terraform as the standard Infrastructure as Code tool. This necessitates a solid understanding of Terraform for any cloud architect or engineer working on Google Cloud. Yet no specific resources are available that focus on how to use Terraform on Google Cloud. This is the first book that teaches Terraform specifically for Google Cloud. You will take a journey from the basic concepts through to deploying complex architectures using Terraform. Using extensive code examples, you will receive guidance on how to authenticate Terraform in Google Cloud. As you advance, you'll get to grips with all the essential concepts of the Terraform language as applied to Google Cloud and deploy complete working architectures at the push of a button. Finally, you'll also be able to improve your Terraform workflow using Google Cloud native and third-party tools. By the end of this Terraform book, you will have gained a thorough understanding of Terraform and how to use it on Google Cloud, and be able to develop effective Terraform code, build reusable code, and utilize public domain Terraform modules to deploy on Google Cloud faster and more securely. What You Will Learn: Authenticate Terraform in Google Cloud using multiple methods Write efficient Terraform code Use modules to share Terraform templates Manage multiple environments in Google Cloud Apply Terraform to deploy multi-tiered architectures Use public modules to deploy complex architectures quickly Integrate Terraform into your Google Cloud environment Who this book is for: This book is for Google Cloud architects and engineers who want to increase their productivity by using Terraform to automate the provisioning of Google Cloud deployments. A basic understanding of Google Cloud, such as the ability to provision resources using the Google Cloud console and using Cloud Shell, is assumed. Certification in Google Cloud is not required but helpful.

✦ Table of Contents


Cover
Title page
Copyright and credits
Contributors
Table of Contents
Preface
Part 1: Learning the Fundamentals
Chapter 1: Getting Started with Terraform on Google Cloud
Technical requirements
The rise of DevOps
Infrastructure as Code
Terraform
Running Terraform in Google Cloud Shell
Terraform language
Terraform workflow
Running Terraform in your local environment
Authentication using a service account
Authentication using a service account and environment variable
Service account impersonation
Parameterizing Terraform
Comparing authentication methods
Summary
Chapter 2: Exploring Terraform
Technical requirements
Understanding the Terraform state
Interacting with the Terraform state
Understanding destructive changes
Avoiding configuration drift
Additional state commands
Using the backend state
Understanding Terraform meta-arguments
The provider meta-argument
The count meta-argument
The for_each meta-argument
The depends_on meta-argument
The lifecycle meta-argument
Using the self_link attribute
Summary
Chapter 3: Writing Efficient Terraform Code
Technical requirements
Terraform types and values
Using Terraform expressions
Dynamic blocks
Conditional expressions
Terraform functions
Referencing existing data using data sources
Using output values
Tips to develop Terraform code efficiently
Summary
Chapter 4: Writing Reusable Code Using Modules
Technical requirements
Building modules
Writing flexible modules
Sharing modules using Google Cloud Storage and Git repositories
Using public module repositories
Summary
Chapter 5: Managing Environments
Technical requirements
Google resource hierarchy
Using workspaces to manage environments
Using a directory structure to manage environments
Using remote states
Using template files
Managing Terraform at scale
Summary
Part 2: Completing the Picture
Chapter 6: Deploying a Traditional Three-Tier Architecture
Technical requirements
Overview
Laying the foundation
Provisioning the database
Provisioning a MIG and global load balancer
Summary
Chapter 7: Deploying a Cloud-Native Architecture Using Cloud Run
Technical requirements
Overview
Provisioning Redis and connecting it via a VPC connector
Using Terraform to configure a flexible load balancer for Cloud Run
Using Terraform to provision Cloud Run services
To Terraform or not to Terraform
Summary
Chapter 8: Deploying GKE Using Public Modules
Technical requirements
Overview
Developing a variable strategy
Provisioning a network using the public module
Provisioning a GKE cluster using the public module
Using workspaces to deploy to development and production environments
Summary
Part 3: Wrapping It Up
Chapter 9: Developing Terraform Code Efficiently
Technical requirements
VS Code Terraform Extension
Syntax highlighting and validation
Intelligent auto-completion
Code navigation
tflint
Checkov
Terragrunt
Summary
Chapter 10: Google Cloud Integration
Technical requirements
Using Terraform with Cloud Build
Building a service catalog with Terraform solutions
Importing and exporting Terraform resources
Google Cloud export
Summary
Closing thoughts
Index
Other Books You May Enjoy


πŸ“œ SIMILAR VOLUMES


Terraform for Google Cloud Essential Gui
✍ Bernd Nordhausen πŸ“‚ Library πŸ“… 2023 πŸ› Packt Publishing 🌐 English

Become an expert in Terraform on Google Cloud by using Infrastructure as Code for provisioning multiple yet consistent environments to increase productivity in no time Key Features: Get up and running with Terraform on Google Cloud Learn Terraform concepts using Google Cloud code examples Apply Terr

Infrastructure Leader’s Guide to Google
✍ Jeremy Lloyd πŸ“‚ Library πŸ“… 2022 πŸ› Apress 🌐 English

<p><span>Making fast and accurate technology decisions is critical to staying relevant to your customers. And technology needs to add value back to your organization quicker than ever. Google Cloud offers IT leaders the answer to today’s technology challenges. However, to realize its benefits you mu

Infrastructure Leader’s Guide to Google
✍ Jeremy Lloyd πŸ“‚ Library πŸ“… 2022 πŸ› Apress 🌐 English

<p><span>Making fast and accurate technology decisions is critical to staying relevant to your customers. And technology needs to add value back to your organization quicker than ever. Google Cloud offers IT leaders the answer to today’s technology challenges. However, to realize its benefits you mu

Infrastructure Leader’s Guide to Google
✍ Jeremy Lloyd πŸ“‚ Library πŸ“… 2022 πŸ› Apress 🌐 English

<p><span>Making fast and accurate technology decisions is critical to staying relevant to your customers. And technology needs to add value back to your organization quicker than ever. Google Cloud offers IT leaders the answer to today’s technology challenges. However, to realize its benefits you mu

Google Cloud Certified Professional Clou
✍ Maurizio Ipsale, Mirko Gilioli πŸ“‚ Library πŸ“… 2022 πŸ› Packt Publishing 🌐 English

<span><p><b>Gain practical skills to design, deploy, and manage networks on Google Cloud and prepare to gain Professional Cloud Network Engineer certification</b></p><h4>Key Features</h4><ul><li>Gain hands-on experience in implementing VPCs, hybrid connectivity, network services, and security</li><l

Google Cloud Certified Professional Clou
✍ Maurizio Ipsale, Mirko Gilioli πŸ“‚ Library πŸ“… 2022 πŸ› Packt Publishing 🌐 English

<span><p><b>Gain practical skills to design, deploy, and manage networks on Google Cloud and prepare to gain Professional Cloud Network Engineer certification</b></p><h4>Key Features</h4><ul><li>Gain hands-on experience in implementing VPCs, hybrid connectivity, network services, and security</li><l