Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.24 KB

index.md

File metadata and controls

43 lines (30 loc) · 1.24 KB
page_title
Provider: Helpers

Helpers Provider

The Helpers Provider for Terraform is a utility provider that offers a handy set of functions that can be used in your Terraform configurations.

The Helpers Provider function are a good complement to the Terraform built-in functions and can be used to expand the language capabilities. This provider does not manage any resources or data sources.

Use the navigation to the left to read about the available functions.

Example Usage

Starting from Terraform 1.8 the providers can implement custom "functions" that can be used in the configuration.

Make sure you have the Helpers Provider declared inside the required_providers {} in the terraform {} block:

terraform {
  required_providers {
    helpers = {
      source = "registry.terraform.io/inventium-tech/helpers"
    }
  }
}

Function Syntax

In order to use the functions provided by the Helpers Provider, you need to use the following syntax:

provider::helpers::<function_name>

For example, to use the object_set_value function you would do it like the following:

output "test_object_set_value" {
  value = provider::helpers::object_set_value(local.target_object, "key1", "new_value", "write_all")
}