A Terraform module creating a bunch of
null_resource
resources to be used in examples.
This module creates a bunch of
null_resources
resources and should be mainly used for examples.
Most basic usage creating a random named secure bucket.
module "example" {
source = "."
string = "Hello World!"
list_of_strings = ["hello", "world", "!"]
module_depends_on = [
null_resource.dependency
]
}
resource "null_resource" "dependency" {}
See variables.tf
-
module_enabled
: (Optionalbool
) Specifies whether resources in the module will be created. Default istrue
. -
module_depends_on
: (Optionallist(any)
) A list of dependencies. Any object can be assigned to this list to define a hidden external dependency.
-
string
: (Optionalstring
) A string. Default is""
. -
list_of_strings
: (Optionallist(string)
) A list of strings. Default is[]
in addition of all arguments above the following attributes are exported by the module:
single
: A single null resource object as returned bynull_resource
count
: A list of null resource objects as returned bynull_resource
for_each
: A map of null resource objects keyed by the value of the elements of the input listnull_resource
You have the samples in samples folder