Releases: hashicorp/terraform-plugin-sdk
Releases · hashicorp/terraform-plugin-sdk
v2.30.0
NOTES:
- meta: The
SDKVersion
variable,SDKPrerelease
variable, andSDKVersionString()
function have been deprecated. Use the Go standard libraryruntime/debug
package build information instead. (#1257)
BUG FIXES:
- meta: Fixed version in
SDKVersion
variable andSDKVersionString()
function (#1257) - helper/schema: Ensured
(ResourceData).GetRawConfig()
data is populated forProvider.ConfigureFunc
andProvider.ConfigureContextFunc
(#1270) - helper/schema: Ensured
(ResourceData).GetOkExists()
second result istrue
when configuration contains zero-value data inProvider.ConfigureFunc
andProvider.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
Resource
typeEnableApplyLegacyTypeSystemErrors
andEnablePlanLegacyTypeSystemErrors
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
typeEnableLegacyTypeSystemApplyErrors
field, which will prevent Terraform from demoting data consistency errors to warning logs duringApplyResourceChange
(Create
,Update
, andDelete
) operations with the resource (#1227) - helper/schema: Added
Resource
typeEnableLegacyTypeSystemPlanErrors
field, which can be used to prevent Terraform from demoting data consistency errors to warning logs duringPlanResourceChange
operations with the resource (#1227)
v2.27.0
NOTES:
- helper/schema: Consumers directly referencing the
Resource
typeSchema
field should switch to theSchemaMap
method to ensure newSchemaFunc
field 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/id
package instead. These deprecations are to assist in migrating to terraform-plugin-testing (#1167) - helper/resource: Deprecated
RetryContext()
,StateChangeConf
, and associated*Error
types. Use thehelper/retry
package instead. These deprecations are to assist in migrating to terraform-plugin-testing (#1167)
ENHANCEMENTS:
- helper/id: New
helper/id
package added.resource.PrefixedUniqueId()
andresource.UniqueId()
are deprecated,helper/id
should be used instead.helper/resource
now contains aliases to the migrated code (#1167) - helper/retry: New
helper/retry
package added.resource.RetryContext()
,resource.StateChangeConf
, and associated*Error
types are deprecated,helper/retry
should be used instead. `helper/resource now contains aliases to the migrated code (#1167)
v2.25.0
BUG FIXES:
- helper/schema: Allow diagnostic messages with incorrect UTF-8 encoding to pass through with the invalid sequences replaced with the Unicode Replacement Character. This avoids returning the unhelpful message "string field contains invalid UTF-8" in that case. (#1111)
- helper/schema: Prevented unexpected difference for timeouts on first plan after import (#1146)
v2.24.1
BUG FIXES:
- helper/resource: Fixed
TestStep
typeImportStateCheck
field so that it only matches against resources following a change in behaviour in Terraform 1.3 that imports both resources and data sources into state (#1089) - helper/resource: Prevented go-plugin goroutine leak per Terraform command (#1095)
- helper/resource: Prevented goroutine leak per Terraform command when testing terraform-plugin-sdk based providers via
Providers
orProviderFactories
(#1091) - helper/resource: Prevented provider configuration already given error when
TestStep
typeConfig
field already contained provider configuration block (#1092)
v2.24.0
ENHANCEMENTS:
- helper/resource: Added
TestStep
typeRefreshState
field, which enables a step that refreshes state without an explicit apply or configuration changes (#1070)
BUG FIXES:
- helper/resource: Fixed
TestStep
typeImportStateVerify
field so that it only matches against resources following a change in behaviour in Terraform 1.3 that imports both resources and their dependent data sources (#1077)
v2.23.0
ENHANCEMENTS:
- helper/resource: Added Terraform configuration to
TRACE
logging (#1059) - helper/resource: Added
terraform plan
output toTRACE
logging (#1058)
BUG FIXES:
- helper/resource: Prevented
Inconsistent dependency lock file
errors when usingExternalProviders
outside thehashicorp
namespace (#1057)