Skip to content

Commit

Permalink
docs: OpenTofu is supporting functions in 1.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Apr 25, 2024
1 parent 109ae7a commit 61873f5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
15 changes: 9 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -102,8 +104,9 @@ terraform {
}
}
# There are no configuration options
provider "corefunc" {}
provider "corefunc" {
# There are no configuration options
}
```

## Updating your lockfile
Expand Down
5 changes: 3 additions & 2 deletions examples/provider/provider_ds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ terraform {
}
}

# There are no configuration options
provider "corefunc" {}
provider "corefunc" {
# There are no configuration options
}
8 changes: 5 additions & 3 deletions examples/provider/provider_fn.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
terraform {
required_version = "~> 1.8"
required_version = "~> 1.8" # Terraform
# required_version = "~> 1.7" # OpenTofu

required_providers {
corefunc = {
Expand All @@ -9,5 +10,6 @@ terraform {
}
}

# There are no configuration options
provider "corefunc" {}
provider "corefunc" {
# There are no configuration options
}
2 changes: 1 addition & 1 deletion templates/index.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}

Expand Down

0 comments on commit 61873f5

Please sign in to comment.