-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
30 lines (26 loc) · 586 Bytes
/
main.tf
File metadata and controls
30 lines (26 loc) · 586 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
variable "person" {
type = object({ name = string, age = number })
default = {
name = "Bob"
age = 10
}
}
output "person" {
value = var.person
}
variable "person_with_address" {
type = object({ name = string, age = number, address = object({ line1 = string, line2 = string, county = string, postcode = string }) })
default = {
name = "Jim"
age = 21
address = {
line1 = "1 the road"
line2 = "St Ives"
county = "Cambridgeshire"
postcode = "CB1 2GB"
}
}
}
output "person_with_address" {
value = var.person_with_address
}