تقييمات الطلاب
( 5 من 5 )
١ تقييمات
فيديو شرح Terraform on Google Cloud #7 Variables: Map, Object & Validation rules ضمن كورس Terraform شرح قناة The Zone، الفديو رقم 8 مجانى معتمد اونلاين
Hello friends, in the previous videos we covered types and how to use some complex ones. In this video we'll cover two more complex types: map and object
Terraform map and object combine multiple values into a single one inside a pair of curly braces. They are formed by key-value pairs separated by commas or line breaks. Object type is for map what tuple if for list.
In addition to type constraints, you can specify custom validation rules for a particular value using validation blocks.
A validation block is nested within the variable and defines two arguments:
- condition
- error_message
GitHub Repo Link: https://github.com/AlterPat/terraform
---------- TIMESTAMP ---------
0:00 - Intro
0:17 - Map & Object structure
1:10 - Map type
1:58 - Object type
2:21 - Validation rules
3:11 - How to use them
Enjoy!