terraform-plugin-framework
terraform-plugin-framework copied to clipboard
A next-generation framework for building Terraform providers.
### Module version ``` github.com/hashicorp/terraform-plugin-framework v1.1.1 ``` ### Overview Within [terraform-provider-cloudflare](https://github.com/cloudflare/terraform-provider-cloudflare/), we heavily rely on `terraform-plugin-docs` to generate our documentation. As part of this, we have an `init` method that...
### Module version ``` v1.0.1 ``` ### Use-cases Providers coming from terraform-plugin-sdk may be looking for functionality similar to [`helper/customdiff.ComputedIf`](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/v2/helper/customdiff#ComputedIf) (which itself was an actual implementation of [`helper/schema.Schema.ComputedWhen`](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema#Schema.ComputedWhen)). Its purpose...
### Module version ``` v0.15.0 ``` ### Use-cases Provider developers migrating from terraform-plugin-sdk may be looking for something similar to its [`(helper/schema.ResourceData).HasChanges(...string)` method](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema#ResourceData.HasChanges), which checking for individual attribute changes between...
### Module version ``` v1.0.0 ``` ### Use-cases Provider developers should not need to drop down to the `github.com/hashicorp/terraform-plugin-go/tftypes` type system for advanced use cases that require working with schema-based...
### Module version ``` v1.0.0 ``` ### Use-cases Provider developers should not need to drop down to the `github.com/hashicorp/terraform-plugin-go/tftypes` type system when creating custom types via `attr.Type` and `attr.Value`. In...
### Module version ``` v0.14.0 ``` ### Use-cases `attr.Value` in the framework type system must be able to return their associated `attr.Type`. This is handled via the `Type(context.Context) attr.Type` method...
### Module version ``` github.com/hashicorp/terraform-plugin-framework v1.9.0 ``` ### Use-cases Omit arguments in provider functions when the default is already the correct value. e.g. My [provider function](https://registry.terraform.io/providers/germanbrew/dotenv/latest/docs/functions/get_by_key#example-usage) has a filename argument...
### Module version ``` 1.9.0 ``` ### Relevant provider source code resource implementation: https://github.com/microsoft/terraform-provider-power-platform/blob/main/internal/powerplatform/services/data_record/resource_data_record.go ```go func (r *DataRecordResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ Description: "The...
Relates: #999 Relates: #1002 Website documentation for the experimental deferred actions feature. I wrote this documentation with the assumption that general information explaining the concept of deferred actions would be...
The warning message for an attribute that has been marked as "Sensitive" shows the value in the console. I suspect similar misbehavior for error message? ### Module version ``` github.com/hashicorp/terraform-plugin-framework...