Skip to content

chore(deps): bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.27.0 to 2.40.0#147

Closed
dependabot[bot] wants to merge 1 commit into
v2from
dependabot/go_modules/github.com/hashicorp/terraform-plugin-sdk/v2-2.40.0
Closed

chore(deps): bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.27.0 to 2.40.0#147
dependabot[bot] wants to merge 1 commit into
v2from
dependabot/go_modules/github.com/hashicorp/terraform-plugin-sdk/v2-2.40.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Mar 11, 2026

Copy link
Copy Markdown

Bumps github.com/hashicorp/terraform-plugin-sdk/v2 from 2.27.0 to 2.40.0.

Release notes

Sourced from github.com/hashicorp/terraform-plugin-sdk/v2's releases.

v2.40.0

NOTES:

  • This release moves the resource configuration generation logic for the -generate-config-out flag from Terraform Core to the SDKv2 for Terraform v1.14.0 and above. There should be no functionality changes for resource configuration generation in this release. (#1559)
  • This Go module has been updated to Go 1.25 per the Go support policy. Any consumers building on earlier Go versions may experience errors. (#1564)

v2.39.0

ENHANCEMENTS:

  • helper/schema: Added support for deprecation messages on attributes and blocks, which are now populated from the Schema's Deprecated field and passed through to the protocol layer (#1553)

v2.38.2

BUG FIXES:

  • all: Prevent "Missing Resource Identity" error if the resource returned any errors during apply. (#1541)

v2.38.1

BUG FIXES:

  • all: Prevent identity change validation from raising an error when prior identity is empty (all attributes are null) (#1527)

v2.38.0

NOTES:

  • all: This Go module has been updated to Go 1.24 per the Go support policy. It is recommended to review the Go 1.24 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#1518)
  • helper/schema: Update the provider server to handle the ListResource RPCs by returning an error since they are not supported by SDKv2. (#1521)
  • helper/schema: Update the provider server to handle Action RPCs by returning an error since they are not supported by SDKv2. (#1522)

ENHANCEMENTS:

  • helper/schema: Added new helper methods for converting Resource and Identity schemas to protocol representations. (#1504)
  • helper/schema: Added an additional validation check to ensure the resource identity object is not null. (#1513)
  • helper/schema: Added the TfTypeIdentityState() and TfTypeResourceState() methods to ResourceData which return the identity and state values as a tftypes.Value. (#1508)

v2.37.0

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)

... (truncated)

Changelog

Sourced from github.com/hashicorp/terraform-plugin-sdk/v2's changelog.

2.40.0 (March 10, 2026)

NOTES:

  • This release moves the resource configuration generation logic for the -generate-config-out flag from Terraform Core to the SDKv2 for Terraform v1.14.0 and above. There should be no functionality changes for resource configuration generation in this release. (#1559)
  • This Go module has been updated to Go 1.25 per the Go support policy. Any consumers building on earlier Go versions may experience errors. (#1564)

2.39.0 (February 27, 2026)

ENHANCEMENTS:

  • helper/schema: Added support for deprecation messages on attributes and blocks, which are now populated from the Schema's Deprecated field and passed through to the protocol layer (#1553)

2.38.2 (February 02, 2026)

BUG FIXES:

  • all: Prevent "Missing Resource Identity" error if the resource returned any errors during apply. (#1541)

2.38.1 (September 22, 2025)

BUG FIXES:

  • all: Prevent identity change validation from raising an error when prior identity is empty (all attributes are null) (#1527)

2.38.0 (September 17, 2025)

NOTES:

  • all: This Go module has been updated to Go 1.24 per the Go support policy. It is recommended to review the Go 1.24 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#1518)
  • helper/schema: Update the provider server to handle the ListResource RPCs by returning an error since they are not supported by SDKv2. (#1521)
  • helper/schema: Update the provider server to handle Action RPCs by returning an error since they are not supported by SDKv2. (#1522)

ENHANCEMENTS:

  • helper/schema: Added new helper methods for converting Resource and Identity schemas to protocol representations. (#1504)
  • helper/schema: Added an additional validation check to ensure the resource identity object is not null. (#1513)
  • helper/schema: Added the TfTypeIdentityState() and TfTypeResourceState() methods to ResourceData which return the identity and state values as a tftypes.Value. (#1508)

2.37.0 (May 16, 2025)

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)

... (truncated)

Commits
  • dde4384 Update changelog
  • 9136f3a Update meta package SDKVersion
  • 86877a0 Implement GenerateResourceConfig RPC and existing Terraform default logic (#...
  • 3643171 [Chore] Upgrade Go version to 1.25 (#1564)
  • 9c60d2f build(deps): bump github.com/hashicorp/copywrite in /tools (#1563)
  • 328ad99 build(deps): bump github.com/cloudflare/circl in /tools (#1561)
  • ff0698e build(deps): bump the github-actions group across 1 directory with 4 updates ...
  • f661d42 Update changelog
  • 19ef5a4 Update meta package SDKVersion
  • 9a14d44 feat: add deprecation messages for attributes and blocks in configschema (#1553)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.27.0 to 2.40.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-sdk@v2.27.0...v2.40.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-version: 2.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Mar 11, 2026
@dependabot @github

dependabot Bot commented on behalf of github Apr 28, 2026

Copy link
Copy Markdown
Author

Superseded by #164.

@dependabot dependabot Bot closed this Apr 28, 2026
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/hashicorp/terraform-plugin-sdk/v2-2.40.0 branch April 28, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants