Перейти к содержимому

How to manage Terraform variables like a Pro

Nilesh Gule

0:00 / 0:00

How to manage Terraform variables like a Pro

455 просмотров · 2 года назад
Nilesh Gule
6,94 тыс. подписчиков
455 просмотров · 2 года назад
Welcome to the tutorial on how to manage Terraform variables like a Pro. As the number of resources provisioned and managed using Terraform increases, we need better ways to manage the complexity of the configurations. In this video, we'll walk through the process to get Terraform up and running with Azure. We will initialize the Azure resource manager provider for Terraform and then plan and create a Resource Group, Virtual network (vnet) and Subnet. We will see how variables help us to modularize the Terraform configuration. We also look at how we can create different configurations for different environments. We look at the precedence in which variables are evaluated while assigning values. If you found this tutorial helpful, please give us a thumbs up, subscribe to our channel for more tech tutorials, and don't forget to hit the notification bell so you never miss an update. Feel free to leave any questions or suggestions in the comments below. Thanks for watching, and happy coding. Until next time, Code with Passion and Strive for Excellence 🚀 #Terraform #azure #azurerm #TerraformTutorial #terraformvariables #devops ▬▬▬▬▬▬ 🔗 Additional Info 🔗 ▬▬▬▬▬▬ 🔗 Terraform - https://developer.hashicorp.com/terra... 🔗 Terraform official provider for Azure - https://registry.terraform.io/provide... 🔗 Terraform documentation for Azure Resource Group Module - https://registry.terraform.io/provide... 🔗 VS Code extension for Hashicorp Terraform - https://marketplace.visualstudio.com/... 🔗 VS Code extension for Azure Terraform - https://marketplace.visualstudio.com/... 🔗 Terraform documentation for Azure Resource Group Module - https://registry.terraform.io/provide... 🔗 YouTube video on how to install Terraform using Homebrew -    • Easiest way to install Terraform on Mac us...   🔗 YouTube video on how to provision Azure Resource Group using Terrafrom -    • From Zero to Resource Group Hero: Terrafor...   🔗 YouTube video on how to cross reference resources in Terraform -    • Unlock the Power of Terraform: Manage reso...   🔗 Github repository with the source code - https://github.com/NileshGule/terraform/ ▬▬▬▬▬▬ ⏱ Chapters⏱ ▬▬▬▬▬▬ 00:00 - Quick overview of Terraform variables 01:20 - Prerequisite (Terraform CLI, VS Code, Azure CLI) 01:45 - Terraform stages overview 02:35 - Problem statement 05:10 - Resource Group, VNet and Subnet configuration 06:20 - Define variables using variables.tf 08:00 - Use variables in Terraform configurations 09:25 - Understand variable assignment using Terraform plan 10:40 - Terraform variables precedence order 11:10 - Terraform tfvars file overview 12:20 - Create resources using Terraform apply command 13:10 - Override values for different environments 14:40 - verify created resources on command line and visually using Azure portal 15:30 - Terraform plan command with override file 17:35 - Terraform plan with variables file along with variable override on command line 19:15 - delete resources using Terraform destroy command 19:50 - Terraform variable precedence 22:25 - Terraform variables data types 22:45 - benefits of using Terraform variables 25:30 - Additional references 25:50 - Summary ▬▬▬▬▬▬ 👋 Contact me 👋 ▬▬▬▬▬▬ Connect with me here: 🔗 Subscribe:    / @nilesh-gule   🔗 YouTube :    / @nilesh-gule   🔗 GitHub: https://github.com/nileshgule 🔗 Twitter:   / nileshgule   🔗 Website: https://www.HandsOnArchitect.com/ 🔗 LinkedIn :   / nileshgule