terraform-plugin-sdk
terraform-plugin-sdk copied to clipboard
Terraform Plugin SDK enables building plugins (providers) to manage any service providers or custom in-house solutions
terraform-plugin-sdk has a dependency on [github.com/hashicorp/go-cty/cty](https://github.com/hashicorp/terraform-plugin-sdk/blob/112e2164c381d80e8ada3170dac9a8a5db01079a/internal/configs/configschema/implied_type.go#L4) which is an [out-of-date fork](https://github.com/hashicorp/terraform-plugin-sdk/blob/c004533afe16a844ef40f474879ed9a3a7aa72ae/go.mod#L10) of [github.com/zclconf/go-cty](https://github.com/hashicorp/terraform-plugin-sdk/blob/c004533afe16a844ef40f474879ed9a3a7aa72ae/go.mod#L27). ### Expected Behavior Data should be easy to convert from cty -> hcl using hclwrite. ### Actual...
add a flag to determine whether `ReadContext` is called via `schema.ImportStatePassthroughContext`
### SDK version ``` github.com/hashicorp/terraform-plugin-sdk/v2 v2.18.0dk/... ``` ### Use-cases currently, there is no way to determine whether we are encountering an on-going import operation in `schema.Resource.ReadContext` if it is called...
### SDK version ``` 2.19.0 ``` ### Use-cases See details in https://github.com/hashicorp/terraform-provider-aws/issues/25986 in case of early fatal AWS ASGs errors occurring after timeout, the error message is exactly the same...
See the following links for details: - https://github.com/hashicorp/terraform-plugin-sdk/issues/1014 - https://github.com/hashicorp/terraform-provider-aws/issues/25986 - https://github.com/hashicorp/terraform-provider-aws/pull/25987 The documentation has been also updated to include meaningful example for this new functionnality
### SDK version ``` v1.13.1-1 ``` ### Relevant provider source code Taken from: https://github.com/terraform-providers/terraform-provider-aws/blob/master/aws/resource_aws_iam_role.go#L152 ```go var createResp *iam.CreateRoleOutput err := resource.Retry(30*time.Second, func() *resource.RetryError { var err error createResp, err =...
Maybe I'm doing this wrong? ### SDK version ``` { "Path": "github.com/hashicorp/terraform-plugin-sdk/v2", "Version": "v2.0.2" } ``` ### Relevant provider source code ```go // In provider resource DELETE function: _, err...
helper/validation: add StringRuneCountBetween() and StringBytesBetween() instead StringLenBetween()
#### Summary * In this PullRequest, add validator in order to count `string length` correctly. * Current, [StringLenBetween()](https://github.com/hashicorp/terraform-plugin-sdk/blob/v2.17.0/helper/validation/strings.go#L69-L85) count `byte length`. * For example Japanese, 1 character mean 3 bytes...
### SDK version ``` github.com/hashicorp/terraform-plugin-sdk/v2 v2.10.1 ``` ### Terraform version ``` Terraform v1.1.4 on darwin_amd64 + provider registry.terraform.io/hashicorp/aws v3.73.0 ``` ### Expected Behavior Log lines should look like the following...
I'm trying to use `ConflictsWith` on a `TypeList` and it isn't working. I think I've narrowed down the issue, but I'm not entirely sure. The `openstack_compute_instance_v2` resource has a [`network`](https://github.com/hashicorp/terraform/blob/master/builtin/providers/openstack/resource_openstack_compute_instance_v2.go#L107)...
### SDK version ``` github.com/hashicorp/terraform-plugin-sdk/v2 v2.6.1 ``` ### Use-cases I'd like to make a provider that exposes a variant of the `random_shuffle` resource, except that it attempts to provide stability...