Cloud Networking
Getting Started with Terraform for Google Cloud
Transform the way you manage infrastructure! Learn to use Terraform on Google Cloud to implement IaC solutions and create scalable, automated, and repeatable infrastructure
1 Days

Target Audience
Perfect for:
• Cloud and DevOps engineers automating Google Cloud infrastructure.
• Beginners eager to master Terraform for scalable and efficient IaC solutions
What you'll learn
IaC Fundamentals:
Understand the need and benefits of infrastructure as code.
Terraform Mastery:
Learn Terraform features, manage Google Cloud resources, and utilize modules for efficiency.
Terraform State:
Grasp the importance of Terraform state for consistent infrastructure management.

Prerequisites for Success
Prerequisites for Success
• Have completed the Google Cloud Fundamentals: Core Infrastructure course or possess equivalent experience.
• Be familiar with basic programming concepts.
• Have experience using command-line interfaces (CLI).
• Have a general understanding of Google Cloud’s services and architecture.

COURSE AGENDA
Introduction to Terraform for Google Cloud
- Understand Infrastructure as Code (IaC): What it is, the problems it solves, and its benefits.
- Learn the differences between Provisioning and Configuration workflows.
- Compare Imperative vs. Declarative approaches in IaC.
- Get an overview of Terraform, its use cases, and its application in production environments.
- Learn how to install Terraform and authenticate it for Google Cloud.
Terms & Concepts
- Explore the Author Phase:
- Terraform directory structure.
- Introduction to HCL Syntax, Resources, Variables, State, and Modules.
- Master Terraform commands like init, plan, apply, fmt, and destroy.
- Learn about the Terraform Validator Tool: its purpose, validation workflow, and use cases.
Writing Infrastructure Code for Google Cloud
Understand Terraform resources:
- Overview, syntax, examples, and referencing resource attributes.
- Define resource blocks with considerations for meta-arguments and dependencies.
- Learn about Variables:
- Syntax for declaring, referencing, and assigning values.
- Best practices for using variables effectively.
- Explore Output Variables: overview and best practices for efficient configuration.
- Introduction to the Terraform Registry and Cloud Foundation Toolkit (CFT).
Organising & Reusing Configuration with Terraform Modules
Discover Terraform Modules:
- What they are, their importance, and their use cases.
- Learn how to reuse configurations with modules, including sourcing and calling modules.
- Use Variables to parameterize configurations and pass resource attributes via Output Variables.
Introduction to Terraform State
- Learn how information is stored in a Terraform State File.
- Explore different ways to save a state file, including local storage and cloud storage buckets.
- Understand the issues with local state storage and the benefits of using cloud storage for state files.
- Follow the process for storing a Terraform state file remotely in a cloud storage bucket.
- Learn best practices for managing Terraform state.