From 61873f530c06f46c86094a51d2e65aedb60c5d66 Mon Sep 17 00:00:00 2001 From: Ryan Parman Date: Thu, 25 Apr 2024 17:12:39 -0600 Subject: [PATCH] docs: OpenTofu is supporting functions in 1.7. --- README.md | 1 + docs/index.md | 15 +++++++++------ examples/provider/provider_ds.tf | 5 +++-- examples/provider/provider_fn.tf | 8 +++++--- templates/index.md.tmpl | 2 +- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 523f735a..468ed3d7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Terraform Provider: Core Functions [![Terraform Docs](https://img.shields.io/badge/Terraform-Docs-7B42BC?style=for-the-badge)](https://registry.terraform.io/providers/northwood-labs/corefunc/) +[![Library.tf](https://img.shields.io/badge/Library.tf-Docs-B3DBF1?style=for-the-badge)](https://library.tf/providers/northwood-labs/corefunc/latest) [![Go Docs](https://img.shields.io/badge/Go-Docs-blue?style=for-the-badge)](https://pkg.go.dev/github.com/northwood-labs/terraform-provider-corefunc) [![GitHub](https://img.shields.io/github/license/northwood-labs/terraform-provider-corefunc?style=for-the-badge)](https://opensource.org/licenses/Apache-2.0) [![Go Report Card](https://goreportcard.com/badge/github.com/northwood-labs/terraform-provider-corefunc?style=for-the-badge)](https://goreportcard.com/report/github.com/northwood-labs/terraform-provider-corefunc) diff --git a/docs/index.md b/docs/index.md index 02f73280..c21200ca 100644 --- a/docs/index.md +++ b/docs/index.md @@ -82,17 +82,19 @@ terraform { } } -# There are no configuration options -provider "corefunc" {} +provider "corefunc" { + # There are no configuration options +} ``` ### Provider Functions -For users of Terraform 1.8 (and newer), all of the the _Data Source_ and _Provider Function_ implementations are available. Their implementations (inputs, outputs) are consistent with each other, and will always return the same outputs from the same imputs. _Provider Functions_ require version 1.4.0 (or later) of this provider. +For users of Terraform 1.8/OpenTofu 1.7 (and newer), all of the the _Data Source_ and _Provider Function_ implementations are available. Their implementations (inputs, outputs) are consistent with each other, and will always return the same outputs from the same imputs. _Provider Functions_ require version 1.4.0 (or later) of this provider. ```terraform terraform { - required_version = "~> 1.8" + required_version = "~> 1.8" # Terraform + # required_version = "~> 1.7" # OpenTofu required_providers { corefunc = { @@ -102,8 +104,9 @@ terraform { } } -# There are no configuration options -provider "corefunc" {} +provider "corefunc" { + # There are no configuration options +} ``` ## Updating your lockfile diff --git a/examples/provider/provider_ds.tf b/examples/provider/provider_ds.tf index 1eb1c9bb..dc1f78c6 100644 --- a/examples/provider/provider_ds.tf +++ b/examples/provider/provider_ds.tf @@ -9,5 +9,6 @@ terraform { } } -# There are no configuration options -provider "corefunc" {} +provider "corefunc" { + # There are no configuration options +} diff --git a/examples/provider/provider_fn.tf b/examples/provider/provider_fn.tf index 370ac6a2..820c6999 100644 --- a/examples/provider/provider_fn.tf +++ b/examples/provider/provider_fn.tf @@ -1,5 +1,6 @@ terraform { - required_version = "~> 1.8" + required_version = "~> 1.8" # Terraform + # required_version = "~> 1.7" # OpenTofu required_providers { corefunc = { @@ -9,5 +10,6 @@ terraform { } } -# There are no configuration options -provider "corefunc" {} +provider "corefunc" { + # There are no configuration options +} diff --git a/templates/index.md.tmpl b/templates/index.md.tmpl index dc4c262a..031e6308 100644 --- a/templates/index.md.tmpl +++ b/templates/index.md.tmpl @@ -34,7 +34,7 @@ For users of Terraform 1.0 (and newer), all of the the _Data Source_ implementat ### Provider Functions -For users of Terraform 1.8 (and newer), all of the the _Data Source_ and _Provider Function_ implementations are available. Their implementations (inputs, outputs) are consistent with each other, and will always return the same outputs from the same imputs. _Provider Functions_ require version 1.4.0 (or later) of this provider. +For users of Terraform 1.8/OpenTofu 1.7 (and newer), all of the the _Data Source_ and _Provider Function_ implementations are available. Their implementations (inputs, outputs) are consistent with each other, and will always return the same outputs from the same imputs. _Provider Functions_ require version 1.4.0 (or later) of this provider. {{ tffile "examples/provider/provider_fn.tf" }}