Releases: hashicorp/terraform-plugin-sdk
Releases · hashicorp/terraform-plugin-sdk
v2.34.0
NOTES:
- all: The
v2.33.0release 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:
v2.33.0
v2.32.0
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
v2.30.0
NOTES:
- meta: The
SDKVersionvariable,SDKPrereleasevariable, andSDKVersionString()function have been deprecated. Use the Go standard libraryruntime/debugpackage build information instead. (#1257)
BUG FIXES:
- meta: Fixed version in
SDKVersionvariable andSDKVersionString()function (#1257) - helper/schema: Ensured
(ResourceData).GetRawConfig()data is populated forProvider.ConfigureFuncandProvider.ConfigureContextFunc(#1270) - helper/schema: Ensured
(ResourceData).GetOkExists()second result istruewhen configuration contains zero-value data inProvider.ConfigureFuncandProvider.ConfigureContextFunc(#1270)
v2.29.0
NOTES:
- all: This Go module has been updated to Go 1.20 per the Go support policy. It is recommended to review the Go 1.20 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#1245)
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:
v2.28.0
NOTES:
- helper/schema: The
ResourcetypeEnableApplyLegacyTypeSystemErrorsandEnablePlanLegacyTypeSystemErrorsfields 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
ResourcetypeEnableLegacyTypeSystemApplyErrorsfield, which will prevent Terraform from demoting data consistency errors to warning logs duringApplyResourceChange(Create,Update, andDelete) operations with the resource (#1227) - helper/schema: Added
ResourcetypeEnableLegacyTypeSystemPlanErrorsfield, which can be used to prevent Terraform from demoting data consistency errors to warning logs duringPlanResourceChangeoperations with the resource (#1227)
v2.27.0
NOTES:
- helper/schema: Consumers directly referencing the
ResourcetypeSchemafield should switch to theSchemaMapmethod to ensure newSchemaFuncfield data is properly retrieved (#1217)
ENHANCEMENTS:
v2.26.1
v2.26.0
NOTES:
- This Go module has been updated to Go 1.19 per the Go support policy. Any consumers building on earlier Go versions may experience errors. (#1163)
- helper/resource: Deprecated
PrefixedUniqueId()andUniqueId(). Use thehelper/idpackage instead. These deprecations are to assist in migrating to terraform-plugin-testing (#1167) - helper/resource: Deprecated
RetryContext(),StateChangeConf, and associated*Errortypes. Use thehelper/retrypackage instead. These deprecations are to assist in migrating to terraform-plugin-testing (#1167)
ENHANCEMENTS:
- helper/id: New
helper/idpackage added.resource.PrefixedUniqueId()andresource.UniqueId()are deprecated,helper/idshould be used instead.helper/resourcenow contains aliases to the migrated code (#1167) - helper/retry: New
helper/retrypackage added.resource.RetryContext(),resource.StateChangeConf, and associated*Errortypes are deprecated,helper/retryshould be used instead. `helper/resource now contains aliases to the migrated code (#1167)