
Learn Terraform basics on Google Cloud Platform, including providers, resources, variables, data and module blocks, and apply to GCP services like storage, VPC, Compute Engine, Cloud Run, and BigQuery.
Explore the course structure of Terraform for beginners on Google Cloud Platform, featuring 18 sections focused on GCP services, with cloud console demos, Terraform script demos, quizzes, and downloadable resources.
install terraform on windows, download binaries for macOS, linux, unzip, add to path, verify in terminal or visual studio code, and confirm version 2.8.
Understand Terraform as an infrastructure as code tool that defines cloud and on-prem resources in configurations and provisions them with a workflow, DNS entries and software as a service features.
Terraform creates and manages resources on cloud platforms via APIs, using providers from the Terraform registry to support Amazon Web Services, Azure, Google Cloud Platform, Kubernetes, GitHub, Splunk, and Datadog.
Learn the core Terraform workflow of write, plan, and apply to define resources across providers, create execution plan, and apply changes in dependency-aware order, recreating a VPC before scaling VMs.
Explore how Terraform can manage any infrastructure with providers from the registry, an immutable approach, and a state file, then automate, standardize with modules, and collaborate using Terraform Cloud.
Explore a Terraform configuration example on Google Cloud Platform, using the Google provider with project ID and optional region, and resource blocks for Google Compute Network and VPC Network.
Explore the Terraform Registry to discover Google Cloud provider resources, modules, and documentation, and see how to browse compute, storage, and other GCP services with Terraform.
Create a local file resource with Terraform's local provider, specifying file name and content or sensitive content, then initialize, plan, and apply to create and track it.
Learn to create multiple Terraform resources in one go by duplicating resource blocks, deploying local file resources for learning tf and GCP, and using plan, apply, and destroy workflows.
Explore the random provider in Terraform to generate values within configurations. Create random integer with min and max, random string and password, and perform shuffle with outputs.
Learn how to use Terraform input variables to customize modules without altering source code. Define types, defaults, and descriptions, validate configurations with plan and apply, and capture outputs.
Explore a range of Terraform variable types, including string, number, boolean, list, tuple, map, set, and object, with hands-on examples using terraform init, plan, validate, and apply.
Learn to use Terraform local variable blocks to create reusable expressions with locals, reference them as local.content_question, and reduce repetition in GCP configurations through simple examples.
Learn how Terraform handles implicit dependencies automatically and how to enforce explicit dependencies with depends_on, using random and local resources to show plan and apply results.
Explore Terraform lifecycle rules on GCP, including create_before_destroy, prevent_destroy, and ignore_changes, and see how they govern resource updates during init, plan, and apply.
Discover how to install Terraform providers from the registry, declare required_providers with version constraints, and run terraform init to install and configure providers like the HashiCorp random provider.
Learn to configure multiple Terraform providers in one project, including Google Cloud, Amazon Web Services, and Azure, using provider blocks, required_providers, and terraform init in Visual Studio Code.
Learn how to use Terraform data blocks and data sources to pull information defined outside of Terraform, create a local file data source, define outputs, and apply.
Explore the terraform module block and root modules. Build a reusable module with variables and outputs using the random_string and random_integer providers, and learn to initialize, plan, and apply.
Start Terraform with Google Cloud by creating a free trial account offering 300 credits for 90 days, plus 20+ free products, and explore compute engine, cloud storage, and BigQuery.
Set up a Google Cloud Platform project and create a service account for Terraform with GCP, including generating a JSON key for secure project access.
Configure the Google provider for GCP in Terraform, initialize the project and provider plugins, and specify version constraints to ensure a clean, ready-to-use setup.
Learn how to authenticate Terraform with Google Cloud Platform using username and password via application default credentials, including configuring project, region, and zone, and creating a Google storage bucket.
Authenticate Terraform with GCP using Google Cloud Shell by configuring your project, creating a Terraform block, initializing, planning, and applying, while ensuring a globally unique Cloud Storage bucket name.
Show how to authenticate Terraform with GCP using a service account in Visual Studio Code, the third authentication method, grant storage admin in IAM, and create a Cloud Storage bucket.
Learn the fundamentals of Google Cloud Storage with Terraform, including objects, buckets, and the project-organization hierarchy, and explore tools like the console, cloud client, client libraries, and REST APIs.
Create a Google Cloud storage bucket in the console with a globally unique name, choose multi region storage and uniform access, then upload objects and apply labels and lifecycle rules.
Create and manage a Google Cloud Storage bucket with Terraform, configuring the Google provider, credentials, and bucket arguments such as name, location, labels, and lifecycle.
Learn to configure a Google Cloud Storage bucket with Terraform, set storage class and uniform bucket level access, create a bucket object, and enable public access via object access control.
Learn to manage Google Cloud Storage lifecycles with Terraform by creating lifecycle rules that set storage class to archive or nearline, or delete aged objects, and configure retention policies.
Learn how to delete Google Cloud Storage buckets from the console and Terraform, including handling retention and rotation policies to avoid lingering costs on your free trial.
Explore Google Cloud VPC to create private, isolated networks with regional subnets, control traffic, and understand CIDR blocks and IP addresses in auto or custom mode.
Learn to create a Google Cloud VPC network via console, choose custom subnets, add a US Central 1 IPv4 subnet, configure firewall rules, and deploy default and custom instances.
Learn to build Google Compute networks with Terraform by creating auto and custom vpc networks and an Asia Southeast 1 subnet, enabling private Google access, and applying changes.
Create and configure firewall rules in Google Cloud Console, learning priority, direction (ingress and egress), target, and protocols like tcp 80 to control traffic for a VPC.
Create a Google Compute firewall rule with Terraform by using the Google Compute firewall resource, specifying name, network, ICMP allow, source ranges, and priority.
Delete all VPC networks created in Google Cloud Platform using the console and Terraform destroy, demonstrating best practices to avoid ongoing costs.
Explore Google Compute Engine to create and run virtual machines on Google infrastructure, with scalable performance, load balancing, auto scaling, machine type families, and public or custom images.
Create a Google Compute Engine vm from the cloud console, name and label it, choose region and zone, and run a startup script to install Apache and serve hello world.
Learn to create a Google Compute Engine VM on GCP with Terraform, configuring the provider and resource blocks, boot disk image, default network, external IP, and basic lifecycle commands.
Update a Google Compute Engine VM with Terraform by configuring the google_compute_instance resource, using a networks list, labels, service account, scheduling, and a startup script, then plan and apply.
Learn to create a Google Compute disk with Terraform and attach it to a VM instance, configuring size, zone, and persistent disk type.
Learn to build an HTTP load balancer from a managed instance group created from an instance template with a startup script, including health checks and auto healing across multiple zones.
Analyze the HTTP load balancer in the Google Cloud Platform console, review frontend, routing, and health check, then delete the load balancer, its instance group, template, and health check.
Create a Google Cloud managed instance group with Terraform by defining an instance template, firewall, health check, and auto scaler, using variables for region, zone, and credentials.
Explore Google Cloud App Engine, a fully managed serverless platform on GCP for building and hosting scalable web applications with automatic load balancing, auto scaling, and standard or flexible environments.
Learn to deploy a simple App Engine application from the Google Cloud Console by cloning a Python Hello World sample, testing locally, and deploying with gcloud.
Understand Google Kubernetes Engine as a managed platform for deploying, managing, and scaling apps, with node pools and automatic scaling. Compare autopilot and standard modes and explore the Terraform integration.
Create and compare autopilot and standard GKE clusters from the console, configure region or zone, release channel, and version, then connect with gcloud to deploy a sample app.
Learn to create a GKE cluster on GCP with Terraform, configuring a Google container cluster and node pool, release channel, and basic add-on settings.
Learn to create and manage a Google Kubernetes Engine cluster with Terraform, view cluster details, adjust node count, deploy workloads, and safely destroy resources to control costs.
Explore Google Cloud Run, a managed compute platform that runs containers on scalable Google infrastructure, enabling code deployment in any language with serverless services and jobs.
Learn to create a Google Cloud Run service from the console, deploy container images, manage revisions and traffic, configure region and authentication, and explore logs and YAML; future Terraform integration.
Create a Google Cloud Run service with Terraform by defining a Cloud Run service resource, template, and traffic rules, then initialize, plan, and apply to deploy revisions.
Learn to grant public access to a Google Cloud Run service with Terraform by using an IAM policy data block, binding the viewer role to all users.
Delete Cloud Run services created in the course using the console and Terraform destroy, then verify that all resources are removed in the console.
What is unique about this course?
Reasons why you should start learning GCP
As we know that Terraform is a tool for developing, changing and versioning infrastructure safely and efficiently. What is more, Terraform can manage existing and popular service providers as well as custom in-house solutions. Also, Terraform is the first multi-cloud immutable infrastructure tool that was introduced to the world by HashiCorp and written in Go.
DevOps is about culture and practices that aim at uniting development processes.
Another reason why you should learn Terraform is that, Terraform is a tool and has become more popular because it has a simple syntax that allows easy modularity and works against multi-cloud. One Important reason people consider Terraform is to manage their infrastructure as code.
In fact, Infrastructure as code is also a key and foundation for DevOps practices such as version control, code review, continuous integration, and continuous deployment. If you try to search “infrastructure-as-code” on Google, you will come up with a list of tools, and anybody will get confused to see so many options. But Terraform is one tool to consider because of its excellent features and exceptional reasons (that we have listed further in this article) when compared to other similar tools.
Start your Journey!
Learning Terraform with GCP is amazing journey especially if you are learning and working with Google Cloud Platform. Therefore, I created most practical comprehensive course - Terraform For Beginners using Google Cloud Platform (GCP)
This course has 10+ Hours of insanely great video content with lots-of hands-on Lab (Most Practical Course). I am all exited to help you on your journey towards Terraform using Google Cloud Platform.
Cannot wait you to see in my first lecture!
Sincerely,
Otabek