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...
Watch video Using For_Each in a Terraform Module with Azure VNets and Bastion Host online without registration, duration hours minute second in high quality. This video was added by user Travis Roberts 26 December 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 14,260 once and liked it 363 people.