Skip to content

fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.37.0 #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

doctolib-renovate[bot]
Copy link

@doctolib-renovate doctolib-renovate bot commented May 7, 2025

This PR contains the following updates:

Package Type Update Change
github.com/hashicorp/terraform-plugin-sdk/v2 require minor v2.26.1 -> v2.37.0

Release Notes

hashicorp/terraform-plugin-sdk (github.com/hashicorp/terraform-plugin-sdk/v2)

v2.37.0

Compare Source

NOTES:

  • all: This Go module has been updated to Go 1.23 per the Go support policy. It is recommended to review the Go 1.23 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#​1445)
  • all: This release contains new fields and structs for implmenting managed resource identity. Resource identity is data that is defined by a separate schema and is stored alongside resource state. Identity data is used by Terrform to uniquely identify a remote object and is meant to be immutable during the remote object's lifecycle. Resources that support identity can now be imported using the identity attribute in Terraform configuration import blocks, available in Terraform v1.12+. The resource.Identity field on the schema.Resource struct can be used to support identity by defining an identity schema. Once the identity schema is defined, you can read and store identity data in the state file with the new IdentityData struct that is available via the Identity() method on schema.ResourceData and schema.ResourceDiff structs. (#​1444)

FEATURES:

  • helper/schema: Added new TestResourceDataWithIdentityRaw function for creating a ResourceData struct with identity data for unit testing. (#​1475)
  • helper/schema: Added new Identity field to Resource that supports defining an identity schema for managed resources only. (#​1444)
  • Added new ImportStatePassthroughWithIdentity helper that can support both identity and ID importing via a single field. (#​1474)

ENHANCEMENTS:

  • helper/schema: Added RequiredForImport and OptionalForImport fields to the Schema struct, which are only valid for identity schemas. (#​1444)
  • helper/schema: Updated ResourceData to support passing of identity data in CRUD and import functions for managed resources. (#​1444)

BUG FIXES:

  • helper/schema: Fixed bug that blocked write-only attributes from being used with resources without update functions. (#​1472)

v2.36.1

Compare Source

NOTES:

  • Write-only attribute support is in technical preview and offered without compatibility promises until Terraform 1.11 is generally available. (#​1375)

BUG FIXES:

  • helper/schema: Fixed bug that allowed write-only attributes within set nested blocks. Any attribute within a set nested block with WriteOnly set to true will now trigger an error message. (#​1427)

v2.36.0

Compare Source

NOTES:

  • Write-only attribute support is in technical preview and offered without compatibility promises until Terraform 1.11 is generally available. (#​1375)

FEATURES:

  • helper/schema: Added WriteOnly schema behavior for managed resource schemas to indicate a write-only attribute. Write-only attribute values are not saved to the Terraform plan or state artifacts. (#​1375)
  • helper/validation: Added PreferWriteOnlyAttribute() validator that warns practitioners when a write-only version of a configured attribute is available. (#​1375)
  • schema/resource: Added ValidateRawResourceConfigFuncs field which allows resources to define validation logic during the ValidateResourceTypeConfig RPC. (#​1375)

v2.35.0

Compare Source

NOTES:

  • all: This Go module has been updated to Go 1.22 per the Go support policy. It is recommended to review the Go 1.22 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#​1373)
  • helper/schema: While this Go module will not receive support for ephemeral resource types, the provider server is updated to handle the new operations, which will be required to prevent errors when updating terraform-plugin-framework or terraform-plugin-mux in the future. (#​1390)

v2.34.0

Compare Source

NOTES:

  • all: The v2.33.0 release updated this Go module to Go 1.21 per the Go support policy. It is recommended to review the Go 1.21 release notes before upgrading. Any consumers building on earlier Go versions may experience errors (#​1318)
  • This release contains support for deferred actions, which is an experimental feature only available in prerelease builds of Terraform 1.9 and later. This functionality is subject to change and is not protected by version compatibility guarantees. (#​1335)

FEATURES:

  • helper/schema: Added (Provider).ConfigureProvider function for configuring providers that support additional features, such as deferred actions. (#​1335)
  • helper/schema: Added (Resource).ResourceBehavior to allow additional control over deferred action behavior during plan modification. (#​1335)

v2.33.0

Compare Source

NOTES:

  • helper/schema: While this Go module will not receive support for provider defined functions, the provider server is updated to handle the new operation, which will be required to prevent errors when updating terraform-plugin-framework or terraform-plugin-mux in the future (#​1316)

v2.32.0

Compare Source

NOTES:

  • helper/schema: While this Go module will not receive support for moving resource state across resource types, the provider server is updated to handle the new operation, which will be required to prevent errors when updating terraform-plugin-framework or terraform-plugin-mux in the future. (#​1307)

v2.31.0

Compare Source

NOTES:

  • helper/schema: While this Go module will not receive support for provider-defined functions, the provider server is updated to handle the new operations, which will be required to prevent errors when updating terraform-plugin-framework or terraform-plugin-mux in the future. (#​1288)

v2.30.0

Compare Source

NOTES:

  • meta: The SDKVersion variable, SDKPrerelease variable, and SDKVersionString() function have been deprecated. Use the Go standard library runtime/debug package build information instead. (#​1257)

BUG FIXES:

  • meta: Fixed version in SDKVersion variable and SDKVersionString() function (#​1257)
  • helper/schema: Ensured (ResourceData).GetRawConfig() data is populated for Provider.ConfigureFunc and Provider.ConfigureContextFunc (#​1270)
  • helper/schema: Ensured (ResourceData).GetOkExists() second result is true when configuration contains zero-value data in Provider.ConfigureFunc and Provider.ConfigureContextFunc (#​1270)

v2.29.0

Compare Source

NOTES:

FEATURES:

  • helper/schema: Upgrade to protocol version 5.4, which can significantly reduce memory usage with Terraform 1.6 and later when a configuration includes multiple instances of the same provider (#​1234)

ENHANCEMENTS:

  • helper/validation: Added AllDiag and AnyDiag, which are SchemaValidateDiagFunc variants of All and Any (#​1155)
  • helper/validation: Added quoting in StringInSlice error diagnostic output to prevent confusion with values that contain spaces (#​464)

v2.28.0

Compare Source

NOTES:

  • helper/schema: The Resource type EnableApplyLegacyTypeSystemErrors and EnablePlanLegacyTypeSystemErrors fields can be enabled to more easily discover resource data consistency errors which Terraform would normally demote to warning logs. Before enabling the flag in a production release for a resource, the resource should be exhaustively acceptance tested as there may be unrecoverable error situations for practitioners. It is recommended to first enable and test in environments where it is easy to clean up resources, potentially outside of Terraform. (#​1227)

ENHANCEMENTS:

  • helper/schema: Added Resource type EnableLegacyTypeSystemApplyErrors field, which will prevent Terraform from demoting data consistency errors to warning logs during ApplyResourceChange (Create, Update, and Delete) operations with the resource (#​1227)
  • helper/schema: Added Resource type EnableLegacyTypeSystemPlanErrors field, which can be used to prevent Terraform from demoting data consistency errors to warning logs during PlanResourceChange operations with the resource (#​1227)

v2.27.0

Compare Source

NOTES:

  • helper/schema: Consumers directly referencing the Resource type Schema field should switch to the SchemaMap method to ensure new SchemaFunc field data is properly retrieved (#​1217)

ENHANCEMENTS:

  • all: Improved SDK logging performance when messages would be skipped due to configured logging level (#​1202)
  • helper/schema: Added Resource type SchemaFunc field and SchemaMap method, which can reduce resident memory usage with large schemas (#​1217)

Configuration

📅 Schedule: Branch creation - Between 08:00 AM and 10:59 AM ( * 8-10 * * * ) in timezone Europe/Paris, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was created by Renovate.

Details

Check the default configuration and documentation.

See the logs on Datadog.
To replay this update, you can use the following packageRules on the Manual Run page: [{"matchPackageNames": ["*"], "enabled": false}, {"matchPackageNames": ["github.com/hashicorp/terraform-plugin-sdk/v2"], "enabled": true}]

@doctolib-renovate
Copy link
Author

doctolib-renovate bot commented May 7, 2025

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 29 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.20 -> 1.23.0
golang.org/x/net v0.13.0 -> v0.39.0
golang.org/x/oauth2 v0.10.0 -> v0.26.0
cloud.google.com/go/compute/metadata v0.2.3 -> v0.6.0
github.com/fatih/color v1.15.0 -> v1.16.0
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da -> v0.0.0-20241129210726-2c02b8208cf8
github.com/golang/protobuf v1.5.3 -> v1.5.4
github.com/google/go-cmp v0.5.9 -> v0.7.0
github.com/google/uuid v1.3.0 -> v1.6.0
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 -> v1.5.0
github.com/hashicorp/go-hclog v1.5.0 -> v1.6.3
github.com/hashicorp/go-plugin v1.4.10 -> v1.6.3
github.com/hashicorp/go-version v1.6.0 -> v1.7.0
github.com/hashicorp/hc-install v0.5.0 -> v0.9.2
github.com/hashicorp/hcl/v2 v2.17.0 -> v2.23.0
github.com/hashicorp/terraform-exec v0.18.1 -> v0.23.0
github.com/hashicorp/terraform-json v0.16.0 -> v0.25.0
github.com/hashicorp/terraform-plugin-go v0.15.0 -> v0.27.0
github.com/hashicorp/terraform-registry-address v0.2.1 -> v0.2.5
github.com/mattn/go-isatty v0.0.19 -> v0.0.20
github.com/vmihailenco/msgpack/v5 v5.3.5 -> v5.4.1
github.com/zclconf/go-cty v1.13.2 -> v1.16.2
golang.org/x/crypto v0.11.0 -> v0.38.0
golang.org/x/mod v0.10.0 -> v0.24.0
golang.org/x/sys v0.10.0 -> v0.33.0
golang.org/x/text v0.11.0 -> v0.25.0
google.golang.org/appengine v1.6.7 -> v1.6.8
google.golang.org/genproto/googleapis/rpc v0.0.0-20230731193218-e0aa005b6bdf -> v0.0.0-20250218202821-56aae31c358a
google.golang.org/grpc v1.57.0 -> v1.72.1
google.golang.org/protobuf v1.31.0 -> v1.36.6

docto-mergebot
docto-mergebot previously approved these changes May 7, 2025
@docto-mergebot docto-mergebot removed their assignment May 7, 2025
@doctolib-renovate doctolib-renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x branch from 8f80345 to 084b70d Compare May 7, 2025 07:16
@doctolib-renovate doctolib-renovate bot changed the title fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.36.1 fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.37.0 May 17, 2025
@doctolib-renovate doctolib-renovate bot force-pushed the renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x branch from 084b70d to 02e379b Compare May 17, 2025 06:16
@doctolib-renovate doctolib-renovate bot requested a review from a team as a code owner May 17, 2025 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant