Skip to content

Commit d636e58

Browse files
Update changelog
1 parent d644d7d commit d636e58

10 files changed

+44
-50
lines changed

.changes/2.37.0.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## 2.37.0 (May 16, 2025)
2+
3+
NOTES:
4+
5+
* all: This Go module has been updated to Go 1.23 per the [Go support policy](https://go.dev/doc/devel/release#policy). It is recommended to review the [Go 1.23 release notes](https://go.dev/doc/go1.23) before upgrading. Any consumers building on earlier Go versions may experience errors. ([#1445](https://github.com/hashicorp/terraform-plugin-sdk/issues/1445))
6+
* 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](https://github.com/hashicorp/terraform-plugin-sdk/issues/1444))
7+
8+
FEATURES:
9+
10+
* helper/schema: Added new `TestResourceDataWithIdentityRaw` function for creating a `ResourceData` struct with identity data for unit testing. ([#1475](https://github.com/hashicorp/terraform-plugin-sdk/issues/1475))
11+
* helper/schema: Added new `Identity` field to `Resource` that supports defining an identity schema for managed resources only. ([#1444](https://github.com/hashicorp/terraform-plugin-sdk/issues/1444))
12+
* Added new `ImportStatePassthroughWithIdentity` helper that can support both identity and ID importing via a single field. ([#1474](https://github.com/hashicorp/terraform-plugin-sdk/issues/1474))
13+
14+
ENHANCEMENTS:
15+
16+
* helper/schema: Added `RequiredForImport` and `OptionalForImport` fields to the `Schema` struct, which are only valid for identity schemas. ([#1444](https://github.com/hashicorp/terraform-plugin-sdk/issues/1444))
17+
* helper/schema: Updated `ResourceData` to support passing of identity data in CRUD and import functions for managed resources. ([#1444](https://github.com/hashicorp/terraform-plugin-sdk/issues/1444))
18+
19+
BUG FIXES:
20+
21+
* helper/schema: Fixed bug that blocked write-only attributes from being used with resources without update functions. ([#1472](https://github.com/hashicorp/terraform-plugin-sdk/issues/1472))
22+

.changes/unreleased/BUG FIXES-20250424-133143.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/ENHANCEMENTS-20250512-171131.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changes/unreleased/ENHANCEMENTS-20250512-171419.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/FEATURES-20250512-170956.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/FEATURES-20250512-171620.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/FEATURES-20250512-172448.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changes/unreleased/NOTES-20250317-152749.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changes/unreleased/NOTES-20250512-171756.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
## 2.37.0 (May 16, 2025)
2+
3+
NOTES:
4+
5+
* all: This Go module has been updated to Go 1.23 per the [Go support policy](https://go.dev/doc/devel/release#policy). It is recommended to review the [Go 1.23 release notes](https://go.dev/doc/go1.23) before upgrading. Any consumers building on earlier Go versions may experience errors. ([#1445](https://github.com/hashicorp/terraform-plugin-sdk/issues/1445))
6+
* 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](https://github.com/hashicorp/terraform-plugin-sdk/issues/1444))
7+
8+
FEATURES:
9+
10+
* helper/schema: Added new `TestResourceDataWithIdentityRaw` function for creating a `ResourceData` struct with identity data for unit testing. ([#1475](https://github.com/hashicorp/terraform-plugin-sdk/issues/1475))
11+
* helper/schema: Added new `Identity` field to `Resource` that supports defining an identity schema for managed resources only. ([#1444](https://github.com/hashicorp/terraform-plugin-sdk/issues/1444))
12+
* Added new `ImportStatePassthroughWithIdentity` helper that can support both identity and ID importing via a single field. ([#1474](https://github.com/hashicorp/terraform-plugin-sdk/issues/1474))
13+
14+
ENHANCEMENTS:
15+
16+
* helper/schema: Added `RequiredForImport` and `OptionalForImport` fields to the `Schema` struct, which are only valid for identity schemas. ([#1444](https://github.com/hashicorp/terraform-plugin-sdk/issues/1444))
17+
* helper/schema: Updated `ResourceData` to support passing of identity data in CRUD and import functions for managed resources. ([#1444](https://github.com/hashicorp/terraform-plugin-sdk/issues/1444))
18+
19+
BUG FIXES:
20+
21+
* helper/schema: Fixed bug that blocked write-only attributes from being used with resources without update functions. ([#1472](https://github.com/hashicorp/terraform-plugin-sdk/issues/1472))
22+
123
## 2.37.0-beta.1 (April 18, 2025)
224

325
NOTES:

0 commit comments

Comments
 (0)