LABINTERMEDIATE

Resources and Data Sources on GCP

Build GCP infrastructure with Terraform resources and data sources, then inspect how dependencies appear in the resource graph.

60 minutes
infrastructure/terraform
Resources and Data Sources on GCP - Platform Engineering Hands-On Lab Icon

Lab Overview

Learn how Terraform resources, data sources, and dependencies work together on Google Cloud. In this lab, you'll create core networking resources, read cloud data dynamically, and visualize how Terraform builds the dependency graph.

You'll learn to:

  • Create core GCP resources with Terraform
  • Use data sources to query existing cloud information
  • Understand implicit and explicit dependencies
  • Generate and inspect the Terraform resource graph
  • Clean up infrastructure safely after testing

What You'll Learn

Create google_compute_network, google_compute_subnetwork, and google_compute_firewall resources

Use data sources to reference existing GCP resources dynamically

Add explicit dependencies with depends_on and understand implicit references

Generate and interpret the Terraform dependency graph

Prerequisites

first-terraform-lab

core-workflow-lab

Technologies Covered

terraformgcpresourcesdata-sourcesdependenciesresource-graph

Part of a Course

This lab is part of the HashiCorp Certified: Terraform Associate (004) course

View All Courses

Choose your plan

Simple, Transparent Pricing

Unlock full access to TeKanAid courses, labs, and bootcamps

MonthlyQuarterly

Pro

Course content without labs

$59/month

Renews automatically. Cancel anytime.

  • Full access to all courses
  • Progress tracking
  • Certificate of completion
  • Community access
  • Bootcamp participation
  • New content access
Recommended

Premium

Full access with hands-on labs

$99/month

Renews automatically. Cancel anytime.

  • Everything in Pro
  • Unlimited hands-on labs
  • Lab AI Assistant
  • Accelerator bootcamps with live office hours
  • Priority support

Prefer a single course?

Purchase individual courses for a one-time fee of $79.00. Full access to course content, quizzes, certificates, and community features — lab access is not included.

Browse Courses

Try it free — no credit card

Pick how you want to start. Both are free, and both bridge into the paid Premium catalog when you're ready.

Ready to Get Started?

Start this hands-on lab and build real-world Platform Engineering skills

Get Access Now