Featured resource
2026 Tech Forecast
2026 Tech Forecast

1,500+ tech insiders, business leaders, and Pluralsight Authors share their predictions on what’s shifting fastest and how to stay ahead.

Download the forecast
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Core Tech
Google Cloud Platform icon
Labs

Connect Terraform Configurations with Data Sources and Remote State

Learn how to connect separate Terraform configurations using data sources, outputs, and remote state. In this hands-on lab, you will retrieve information about existing AWS resources, publish infrastructure values as Terraform outputs, and configure a dependent Terraform configuration to consume those outputs from an Amazon S3 remote state backend. You will also validate that changes to upstream outputs are reflected in the dependent configuration.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Nov 25, 2026
Duration
45m

Contact sales

By clicking submit, you agree to our Privacy Policy and Terms of Use, and consent to receive marketing emails from Pluralsight.
Table of Contents
  1. Challenge

    Look up existing resources using Terraform data sources

    In this objective, you will use Terraform data sources to retrieve information about existing AWS networking resources. You will identify a preconfigured VPC and subnet, configure data sources to look up these resources using their tags, and validate that Terraform successfully retrieves their identifiers without creating duplicate infrastructure.

  2. Challenge

    Publish values from a Terraform configuration as outputs

    In this objective, you will configure Terraform outputs to expose information from an existing networking configuration. You will publish the VPC ID, subnet ID, and a shared configuration value, apply the changes, and verify that the outputs are recorded in the upstream Terraform state stored in Amazon S3.

  3. Challenge

    Read another configuration's outputs using Terraform remote state

    In this objective, you will connect a dependent Terraform configuration to the upstream networking configuration using terraform_remote_state. You will configure access to the state stored in Amazon S3, retrieve the published networking outputs, and validate that the dependent configuration can consume those values without managing or recreating the original resources.

  4. Challenge

    Verify upstream changes are reflected in the dependent configuration

    In this objective, you will modify a shared output value in the upstream networking configuration and apply the change to update its remote state. You will then refresh the dependent configuration and verify that it retrieves the updated value while the existing AWS networking resources remain unchanged.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight