Using For_Each in a Terraform Module with Azure VNets and Bastion Host
Yet another in a series on Terraform and Azure. This one goes into detail on using loops in a Terraform Module. We deploy an Azure VNet and Bastion host with a module, looping through a variable number of subnets with a for_each statement. Then, we output the subnet IDs and public IP of the Bastion host. 00:00 - Start 03:30 - Create the Module 05:19 - Create a For_Each Loop 09:56 - Referencing a For_Each Instance 13:49 - Apply the Configuration Links Zero to Hero with Azure Virtual Desktop https://www.udemy.com/course/zero-to-... Hybrid Identity with Windows AD and Azure AD https://www.udemy.com/course/hybrid-i... Terraform Playlist • Getting Started with Terraform Code on Github https://github.com/tsrob50/TerraformE... Blog https://www.ciraltos.com/use-for_each...

Use Existing Resources with Data Sources in Terraform and Azure

Modules and Outputs with Terraform and Azure

Ditch Active Directory? Entra ID for On-Prem Servers!

Choosing Between Count and For-Each

Dynamic Blocks in Terraform with Azure

Input Variables with Terraform and Azure

How to create terraform modules? - Part 9

Private Endpoints and DNS in Azure

Complete Terraform Course - From BEGINNER to PRO! (Learn Infrastructure as Code)

Managing Multiple Environments with Terraform

Terraform Workflow with Azure: Write, Plan and Apply

Terraform Basics: Input Variables

Azure Networking, User Defined Routes, and Network Virtual Appliances

Remote Backend State with Terraform and Azure Storage

How to Build Reusable, Composable, Battle tested Terraform Modules

Exploring Terraform Data Types - string, number, list, set, map, object, tuples

Azure DevOps Pipelines with Terraform and Stages

Creating a module in Terraform - Getting started with Terraform Modules (part 1)

Using Terraform with Azure

