Update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.40.1 - #28
Open
renovate[bot] wants to merge 1 commit into
Open
Update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.40.1#28renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
October 18, 2021 22:41
884a577 to
ba2a5c3
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
March 7, 2022 14:56
ba2a5c3 to
e23db82
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
March 26, 2022 15:38
e23db82 to
ca33eb9
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
April 24, 2022 20:40
ca33eb9 to
59568cf
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
May 15, 2022 23:26
59568cf to
655d31c
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
June 18, 2022 22:03
655d31c to
5e51328
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
September 25, 2022 12:15
5e51328 to
bd2d874
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
November 20, 2022 12:52
bd2d874 to
1629d94
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
March 16, 2023 20:02
1629d94 to
d7eabe2
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
March 23, 2023 21:17
d7eabe2 to
f0dd665
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
June 28, 2023 18:01
f0dd665 to
6fb3096
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
August 24, 2023 18:40
6fb3096 to
8bfab1f
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
September 6, 2023 21:03
8bfab1f to
2954081
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
November 9, 2023 13:38
2954081 to
4ccb900
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
December 14, 2023 20:50
4ccb900 to
7223e1b
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
September 11, 2024 17:38
b6428fd to
701249c
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
October 22, 2024 14:28
701249c to
de4c4fd
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
October 31, 2024 18:56
de4c4fd to
ac0efab
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
November 17, 2024 15:16
ac0efab to
6efe85a
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
December 22, 2024 16:39
6efe85a to
eb6dd9b
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
February 4, 2025 17:39
eb6dd9b to
4f42184
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
February 21, 2025 19:45
4f42184 to
a1d1fd8
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
March 11, 2025 14:26
a1d1fd8 to
2edb522
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
April 8, 2025 10:37
2edb522 to
60bcf14
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
May 7, 2025 12:31
60bcf14 to
c7ba737
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
May 16, 2025 19:26
c7ba737 to
a643ca1
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
August 10, 2025 13:48
a643ca1 to
d4c4938
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
September 17, 2025 17:54
d4c4938 to
d53aec8
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
September 22, 2025 18:55
d53aec8 to
582c1ad
Compare
Author
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
February 2, 2026 17:15
582c1ad to
038492b
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
February 27, 2026 10:02
038492b to
6daaca7
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
March 10, 2026 16:53
6daaca7 to
ab66c9e
Compare
renovate
Bot
force-pushed
the
renovate/github.com-hashicorp-terraform-plugin-sdk-v2-2.x
branch
from
April 28, 2026 14:05
ab66c9e to
4d3e77f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.6.1→v2.40.1Release Notes
hashicorp/terraform-plugin-sdk (github.com/hashicorp/terraform-plugin-sdk/v2)
v2.40.1Compare Source
BUG FIXES:
v2.40.0Compare Source
NOTES:
-generate-config-outflag from Terraform Core to the SDKv2 for Terraformv1.14.0and above. There should be no functionality changes for resource configuration generation in this release. (#1559)v2.39.0Compare Source
ENHANCEMENTS:
v2.38.2Compare Source
BUG FIXES:
v2.38.1Compare Source
BUG FIXES:
v2.38.0Compare Source
NOTES:
ENHANCEMENTS:
TfTypeIdentityState()andTfTypeResourceState()methods toResourceDatawhich return the identity and state values as atftypes.Value. (#1508)v2.37.0Compare Source
NOTES:
identityattribute in Terraform configurationimportblocks, available in Terraform v1.12+. Theresource.Identityfield on theschema.Resourcestruct 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 newIdentityDatastruct that is available via theIdentity()method onschema.ResourceDataandschema.ResourceDiffstructs. (#1444)FEATURES:
TestResourceDataWithIdentityRawfunction for creating aResourceDatastruct with identity data for unit testing. (#1475)Identityfield toResourcethat supports defining an identity schema for managed resources only. (#1444)ImportStatePassthroughWithIdentityhelper that can support both identity and ID importing via a single field. (#1474)ENHANCEMENTS:
RequiredForImportandOptionalForImportfields to theSchemastruct, which are only valid for identity schemas. (#1444)ResourceDatato support passing of identity data in CRUD and import functions for managed resources. (#1444)BUG FIXES:
v2.36.1Compare Source
NOTES:
BUG FIXES:
WriteOnlyset totruewill now trigger an error message. (#1427)v2.36.0Compare Source
NOTES:
FEATURES:
WriteOnlyschema 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)PreferWriteOnlyAttribute()validator that warns practitioners when a write-only version of a configured attribute is available. (#1375)ValidateRawResourceConfigFuncsfield which allows resources to define validation logic during theValidateResourceTypeConfigRPC. (#1375)v2.35.0Compare Source
NOTES:
terraform-plugin-frameworkorterraform-plugin-muxin the future. (#1390)v2.34.0Compare Source
NOTES:
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)FEATURES:
(Provider).ConfigureProviderfunction for configuring providers that support additional features, such as deferred actions. (#1335)(Resource).ResourceBehaviorto allow additional control over deferred action behavior during plan modification. (#1335)v2.33.0Compare Source
NOTES:
v2.32.0Compare Source
NOTES:
v2.31.0Compare Source
NOTES:
v2.30.0Compare Source
NOTES:
SDKVersionvariable,SDKPrereleasevariable, andSDKVersionString()function have been deprecated. Use the Go standard libraryruntime/debugpackage build information instead. (#1257)BUG FIXES:
SDKVersionvariable andSDKVersionString()function (#1257)(ResourceData).GetRawConfig()data is populated forProvider.ConfigureFuncandProvider.ConfigureContextFunc(#1270)(ResourceData).GetOkExists()second result istruewhen configuration contains zero-value data inProvider.ConfigureFuncandProvider.ConfigureContextFunc(#1270)v2.29.0Compare Source
NOTES:
FEATURES:
ENHANCEMENTS:
AllDiagandAnyDiag, which areSchemaValidateDiagFuncvariants ofAllandAny(#1155)StringInSliceerror diagnostic output to prevent confusion with values that contain spaces (#464)v2.28.0Compare Source
NOTES:
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:
ResourcetypeEnableLegacyTypeSystemApplyErrorsfield, which will prevent Terraform from demoting data consistency errors to warning logs duringApplyResourceChange(Create,Update, andDelete) operations with the resource (#1227)ResourcetypeEnableLegacyTypeSystemPlanErrorsfield, which can be used to prevent Terraform from demoting data consistency errors to warning logs duringPlanResourceChangeoperations with the resource (#1227)v2.27.0Compare Source
NOTES:
ResourcetypeSchemafield should switch to theSchemaMapmethod to ensure newSchemaFuncfield data is properly retrieved (#1217)ENHANCEMENTS:
ResourcetypeSchemaFuncfield andSchemaMapmethod, which can reduce resident memory usage with large schemas (#1217)v2.26.1Compare Source
BUG FIXES:
v2.26.0Compare Source
NOTES:
PrefixedUniqueId()andUniqueId(). Use thehelper/idpackage instead. These deprecations are to assist in migrating to terraform-plugin-testing (#1167)RetryContext(),StateChangeConf, and associated*Errortypes. Use thehelper/retrypackage instead. These deprecations are to assist in migrating to terraform-plugin-testing (#1167)ENHANCEMENTS:
helper/idpackage added.resource.PrefixedUniqueId()andresource.UniqueId()are deprecated,helper/idshould be used instead.helper/resourcenow contains aliases to the migrated code (#1167)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)v2.25.0Compare Source
BUG FIXES:
v2.24.1Compare Source
BUG FIXES:
TestSteptypeImportStateCheckfield 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)ProvidersorProviderFactories(#1091)TestSteptypeConfigfield already contained provider configuration block (#1092)v2.24.0Compare Source
ENHANCEMENTS:
TestSteptypeRefreshStatefield, which enables a step that refreshes state without an explicit apply or configuration changes (#1070)BUG FIXES:
TestSteptypeImportStateVerifyfield 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.0Compare Source
ENHANCEMENTS:
TRACElogging (#1059)terraform planoutput toTRACElogging (#1058)BUG FIXES:
Inconsistent dependency lock fileerrors when usingExternalProvidersoutside thehashicorpnamespace (#1057)v2.22.0Compare Source
ENHANCEMENTS:
BUG FIXES:
v2.21.0Compare Source
NOTES:
BUG FIXES:
TestSteptypeTaintfield usage to properly recreate resources (#1031)RawConfig,RawPlan, andRawStateare correctly copied during planning with recreation (#1024)v2.20.0Compare Source
NOTES:
NewTransport()is now deprecated in favour of using the newNewLoggingHTTPTransport()orNewSubsystemLoggingHTTPTransport()(#1006)FEATURES:
NewLoggingHTTPTransport()andNewSubsystemLoggingHTTPTransport()functions, providinghttp.RoundTripperTransport implementations that log request/response using terraform-plugin-log (#546) (#1006)v2.19.0Compare Source
NOTES:
terraform-plugin-logdependency has been updated to v0.6.0, which includes log filtering support and breaking changes ofWith()toSetField()function names. Any provider logging which calls those functions may require updates. (#1003)v2.18.0Compare Source
ENHANCEMENTS:
TF_ACC_LOG,TF_LOG_CORE, andTF_LOG_PROVIDERenvironment variable handling for Terraform versions 0.15 and later (#993)BUG FIXES:
v2.17.0Compare Source
NOTES:
TestCaseorTestSteplevel. Using theTestStephandling, advanced use cases are now enabled such as state upgrade acceptance testing. (#972)ENHANCEMENTS:
TestSteptypeExternalProviders,ProtoV5ProviderFactories,ProtoV6ProviderFactories, andProviderFactoriesfields (#972)BUG FIXES:
terraform state showcommand when not using theTestSteptypeTaintfield (#972)v2.16.0Compare Source
ENHANCEMENTS:
BUG FIXES:
Content-Typeheader. This was causing failures when the SDK attempted to install Terraform. (#960)v2.15.0Compare Source
FEATURES:
TestCheckResourceAttrWithtest helper, that simplifies checking of attribute values via custom functions (#950)ENHANCEMENTS:
tf_data_source_type,tf_req_id,tf_resource_type, andtf_rpcfields in log entries (#955)BUG FIXES:
Unable to create logging subsystem with AdditionalLocationOffset due to missing root logger optionswarning logs during acceptance testing (#955)v2.14.0Compare Source
NOTES:
BUG FIXES:
TF_LOG_PATH_MASKenvironment variable value when bothTF_ACC_LOG_PATHandTF_LOG_PATH_MASKare set (#938)@callerin SDK logging entries accurately reflected calling code location (#939)TF_VAR_*, when calling Terraform CLI commands (#937)@callerin SDK logging entries accurately reflected calling code location (#939)v2.13.0Compare Source
NOTES:
TestCheckNoResourceAttrandTestCheckResourceAttrSetwill now return an error to explain how to accurately check those types of attributes. Some previously passing tests will now fail until the check is correctly updated. (#920)nilerrorwith anError()method that returns an empty string (""), will now return an error diagnostic with an"Empty Error String"summary instead of a panic. Enabling Terraform logging at theWARNlevel (e.g.TF_LOG=WARN terraform apply) can help locate the problematic error by searching for thedetected empty error stringlog message. (#914)ENHANCEMENTS:
TestCheckNoResourceAttr,TestCheckResourceAttr, andTestCheckResourceAttrSet(#920)CHECKPOINT_DISABLE=1set, removing extraneous calls to checkpoint.hashicorp.com to check for latest Terraform CLI version (#913)BUG FIXES:
SchemawithTypeIntto acceptstringvalues fromDefaultFunc, such asEnvDefaultFunc(#841) (#841)errorto diagnostic conversion for a non-nilerror with anError()method that returns an empty string ("") (#914)ToDiagFunc()function when used insideSchematypeElemfield, such as validatingTypeListelements (#915)v2.12.0ENHANCEMENTS:
TestSteptypeConfigfield (#722)BUG FIXES:
ComputedIf,ForceNewIf, andForceNewIfChangesince 2.11.0, using a warning log for backwards compatibility instead (#909)v2.11.0Compare Source
NOTES:
terraform-plugin-logdependency has been updated to v0.3.0, which includes a breaking change in the optional additional fields parameter of logging function calls to ensure correctness and catch coding errors during compilation. Any early adopter provider logging which calls those functions may require updates. (#900)sdk.helper_resourcelogger inherits theTF_LOG,TF_LOG_PATH_MASK, andTF_ACC_LOG_PATHenvironment variable settings, similar to the prior logging. TheTF_LOG_SDK_HELPER_RESOURCEenvironment variable can be used to separately control the new logger level. (#891)TF_LOG_SDK_HELPER_SCHEMAwill be able to set the log level for the SDK separately from the provider. (#837)SchematypeDiffSuppressOnRefreshfield opts in to usingDiffSuppressFuncto detect normalization changes during refresh, using the same rules as for planning. This can prevent normalization cascading downstream and producing confusing changes in other resources, and will avoid reporting "Values changed outside of Terraform" for normalization-only situations. This is a desirable behavior for most attributes that haveDiffSuppressFuncand so would ideally be on by default, but it is opt-in for backward compatibility reasons. (#882)Debugfunction has been deprecated in preference of setting theDebugfield in theServeOptspassed into theServefunction. (#857)ENHANCEMENTS:
TestSteptypeSkipFuncfield. (#889)sdk.helper_resourcelogger and extensiveTRACElog entries (#891)DiffSuppressOnRefreshfield to theSchematype (#882)TF_LOG_SDK_PROTO_DATA_DIRenvironment variable (#857)BUG FIXES:
showcommand eachTestStepunless usingTestCase.IDRefreshName(#892)v2.10.1Compare Source
v2.10.0Compare Source
v2.9.0Compare Source
v2.8.0Compare Source
v2.7.1Compare Source
v2.7.0Compare Source
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.