add template for directives
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Required
|
||||
variable "foo" {
|
||||
}
|
||||
|
||||
# Optional
|
||||
variable "bar" {
|
||||
default = "baz"
|
||||
}
|
||||
|
||||
# Mapping
|
||||
variable "map" {
|
||||
default = {
|
||||
foo = "bar"
|
||||
}
|
||||
}
|
||||
|
||||
# Complex Object Types
|
||||
variable "object_map" {
|
||||
type = map(object({
|
||||
foo = string,
|
||||
bar = any
|
||||
}))
|
||||
}
|
||||
|
||||
variable "object_list" {
|
||||
type = list(object({
|
||||
foo = string,
|
||||
bar = any
|
||||
}))
|
||||
}
|
||||
Reference in New Issue
Block a user