Student Reviews
( 5 Of 5 )
1 review
Video of Terraform on Google Cloud #7 Variables: Map, Object & Validation rules in Terraform course by The Zone channel, video No. 8 free certified online
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!