Skip to content

Latest commit

 

History

History
77 lines (54 loc) · 2.31 KB

File metadata and controls

77 lines (54 loc) · 2.31 KB

terraform-null-resource

A Terraform module creating a bunch of null_resource resources to be used in examples.

Module Features

This module creates a bunch of null_resources resources and should be mainly used for examples.

Getting Started

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" {}

Module Argument Reference

See variables.tf

Module Configuration

  • module_enabled: (Optional bool) Specifies whether resources in the module will be created. Default is true.

  • module_depends_on: (Optional list(any)) A list of dependencies. Any object can be assigned to this list to define a hidden external dependency.

Top-level Arguments

  • string: (Optional string) A string. Default is "".

  • list_of_strings: (Optional list(string)) A list of strings. Default is []

Module Attributes Reference

in addition of all arguments above the following attributes are exported by the module:

  • single: A single null resource object as returned by null_resource
  • count: A list of null resource objects as returned by null_resource
  • for_each: A map of null resource objects keyed by the value of the elements of the input list null_resource

Samples

You have the samples in samples folder