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...