From aea329deed6b388819f723b1a37231f9310528e5 Mon Sep 17 00:00:00 2001 From: Janos <86970079+janosdebugs@users.noreply.github.com> Date: Tue, 30 Apr 2024 11:55:47 +0200 Subject: [PATCH] Docs cleanup before 1.7 release (#1573) Signed-off-by: Janos <86970079+janosdebugs@users.noreply.github.com> --- website/docs/intro/whats-new.mdx | 5 +++++ website/docs/language/functions/index.mdx | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/website/docs/intro/whats-new.mdx b/website/docs/intro/whats-new.mdx index c5aacb9c20..3ec527580f 100644 --- a/website/docs/intro/whats-new.mdx +++ b/website/docs/intro/whats-new.mdx @@ -13,6 +13,9 @@ This page will run you through the most important changes in OpenTofu 1.7: - [Provider-defined functions](#provider-defined-functions) - [Removed block](#removed-block) - [Loopable import blocks](#loopable-import-blocks) +- [Built-in function changes](#built-in-function-changes) +- [CLI changes](#cli-changes) +- [Testing feature changes](#testing-feature-changes) ## State encryption @@ -105,6 +108,8 @@ output "test" { } ``` +What's more, we added an OpenTofu-only feature to let providers dynamically define custom functions based on your configuration. This enhancement allows you to fully integrate other programming languages as [shown in our live stream](https://www.youtube.com/watch?v=6OXBv0MYalY). You can try out this functionality with our experimental [Lua](https://github.com/opentofu/terraform-provider-lua) and [Go](https://github.com/opentofu/terraform-provider-go) providers. + ## Removed block The removed block lets you remove a resource from the state file but keep it on the infrastructure. We have prepared a [full documentation](../language/resources/syntax.mdx#removing-resources) for this feature. You can test it by creating a resource first: diff --git a/website/docs/language/functions/index.mdx b/website/docs/language/functions/index.mdx index 86b78e24a4..9d41e4a8fb 100644 --- a/website/docs/language/functions/index.mdx +++ b/website/docs/language/functions/index.mdx @@ -61,9 +61,8 @@ locals { } ``` - ### Notes for Provider Authors: * Support for functions was added in protocol version 5.5 and 6.5. * OpenTofu's provider protocol is compatible with Terraform's provider protocol. * `GetProviderSchema()` is used to initially query the functions available in a given provider. -* Providers which supply functions may be configured and may supply additional functions via `GetFunctions()`. +* Providers which supply functions may be configured and may supply additional functions via `GetFunctions()`. See the experimental [Lua](https://github.com/opentofu/terraform-provider-lua) and [Go](https://github.com/opentofu/terraform-provider-go) providers for implementation examples.