Skip to content

A Terraform Provider focus on custom Functions designed to support built-in functions from Terraform

License

Notifications You must be signed in to change notification settings

inventium-tech/terraform-provider-helpers

Repository files navigation

logo


Golang Terraform

🛠️ Build Workflow 🔎 MegaLinter ❇️ CodeQL

GitHub language count GitHub Actions Workflow Status GitHub License

📋 Table of Contents

🧰 Terraform Provider: Helpers Functions

This is a Terraform Provider only for Helper functions. The main idea is to extend the built-in functionalities of Terraform with some functions that are not available by default and can be useful in some scenarios.

For a detailed examples and documentation check inside the docs folder or directly in the Terraform Registry.

Available Functions

Collection Functions:

Object Functions:

  • object_set_value: Sets a value in an Object or creates a new key with the value.

OS Functions:

Example Usage

  required_providers {
    helpers = {
      source = "inventium-tech/helpers"
    }
  }
}

locals {
  test_object = {
    key1 = "value1"
    key2 = true
    key3 = 3
    key4 = ""
    key5 = null
  }
}

output "write_all_operation" {
  value = {
    test_value_change_on_existing_key = provider::helpers::object_set_value(local.test_object, "key1", "new_value", "write_all")
    test_add_new_key_value            = provider::helpers::object_set_value(local.test_object, "new_key", "new_value", "write_all")
  }
}
Buy Me A Coffee

About

A Terraform Provider focus on custom Functions designed to support built-in functions from Terraform

Resources

License

Stars

Watchers

Forks

Packages

No packages published