-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update module github.com/hashicorp/terraform-plugin-sdk to v2 #69
base: main
Are you sure you want to change the base?
Update module github.com/hashicorp/terraform-plugin-sdk to v2 #69
Conversation
a695f7a
to
bf5ed30
Compare
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: go.sum
|
bf5ed30
to
9d71552
Compare
9d71552
to
be2d8cc
Compare
be2d8cc
to
2da7d08
Compare
|
This PR contains the following updates:
v1.17.2
->v2.34.0
Release Notes
hashicorp/terraform-plugin-sdk (github.com/hashicorp/terraform-plugin-sdk)
v2.34.0
Compare Source
NOTES:
v2.33.0
release 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).ConfigureProvider
function for configuring providers that support additional features, such as deferred actions. (#1335)(Resource).ResourceBehavior
to allow additional control over deferred action behavior during plan modification. (#1335)v2.33.0
Compare Source
NOTES:
v2.32.0
Compare Source
NOTES:
v2.31.0
Compare Source
NOTES:
v2.30.0
Compare Source
NOTES:
SDKVersion
variable,SDKPrerelease
variable, andSDKVersionString()
function have been deprecated. Use the Go standard libraryruntime/debug
package build information instead. (#1257)BUG FIXES:
SDKVersion
variable andSDKVersionString()
function (#1257)(ResourceData).GetRawConfig()
data is populated forProvider.ConfigureFunc
andProvider.ConfigureContextFunc
(#1270)(ResourceData).GetOkExists()
second result istrue
when configuration contains zero-value data inProvider.ConfigureFunc
andProvider.ConfigureContextFunc
(#1270)v2.29.0
Compare Source
NOTES:
FEATURES:
ENHANCEMENTS:
AllDiag
andAnyDiag
, which areSchemaValidateDiagFunc
variants ofAll
andAny
(#1155)StringInSlice
error diagnostic output to prevent confusion with values that contain spaces (#464)v2.28.0
Compare Source
NOTES:
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:
Resource
typeEnableLegacyTypeSystemApplyErrors
field, which will prevent Terraform from demoting data consistency errors to warning logs duringApplyResourceChange
(Create
,Update
, andDelete
) operations with the resource (#1227)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
Compare Source
NOTES:
Resource
typeSchema
field should switch to theSchemaMap
method to ensure newSchemaFunc
field data is properly retrieved (#1217)ENHANCEMENTS:
Resource
typeSchemaFunc
field andSchemaMap
method, which can reduce resident memory usage with large schemas (#1217)v2.26.1
Compare Source
BUG FIXES:
v2.26.0
Compare Source
NOTES:
PrefixedUniqueId()
andUniqueId()
. Use thehelper/id
package instead. These deprecations are to assist in migrating to terraform-plugin-testing (#1167)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
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
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
Compare Source
BUG FIXES:
v2.24.1
Compare Source
BUG FIXES:
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)Providers
orProviderFactories
(#1091)TestStep
typeConfig
field already contained provider configuration block (#1092)v2.24.0
Compare Source
ENHANCEMENTS:
TestStep
typeRefreshState
field, which enables a step that refreshes state without an explicit apply or configuration changes (#1070)BUG FIXES:
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
Compare Source
ENHANCEMENTS:
TRACE
logging (#1059)terraform plan
output toTRACE
logging (#1058)BUG FIXES:
Inconsistent dependency lock file
errors when usingExternalProviders
outside thehashicorp
namespace (#1057)v2.22.0
Compare Source
ENHANCEMENTS:
BUG FIXES:
v2.21.0
Compare Source
NOTES:
BUG FIXES:
TestStep
typeTaint
field usage to properly recreate resources (#1031)RawConfig
,RawPlan
, andRawState
are correctly copied during planning with recreation (#1024)v2.20.0
Compare Source
NOTES:
NewTransport()
is now deprecated in favour of using the newNewLoggingHTTPTransport()
orNewSubsystemLoggingHTTPTransport()
(#1006)FEATURES:
NewLoggingHTTPTransport()
andNewSubsystemLoggingHTTPTransport()
functions, providinghttp.RoundTripper
Transport implementations that log request/response using terraform-plugin-log (#546) (#1006)v2.19.0
Compare Source
NOTES:
terraform-plugin-log
dependency 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.0
Compare Source
ENHANCEMENTS:
TF_ACC_LOG
,TF_LOG_CORE
, andTF_LOG_PROVIDER
environment variable handling for Terraform versions 0.15 and later (#993)BUG FIXES:
v2.17.0
Compare Source
NOTES:
TestCase
orTestStep
level. Using theTestStep
handling, advanced use cases are now enabled such as state upgrade acceptance testing. (#972)ENHANCEMENTS:
TestStep
typeExternalProviders
,ProtoV5ProviderFactories
,ProtoV6ProviderFactories
, andProviderFactories
fields (#972)BUG FIXES:
terraform state show
command when not using theTestStep
typeTaint
field (#972)v2.16.0
Compare Source
ENHANCEMENTS:
BUG FIXES:
Content-Type
header. This was causing failures when the SDK attempted to install Terraform. (#960)v2.15.0
Compare Source
FEATURES:
TestCheckResourceAttrWith
test helper, that simplifies checking of attribute values via custom functions (#950)ENHANCEMENTS:
tf_data_source_type
,tf_req_id
,tf_resource_type
, andtf_rpc
fields in log entries (#955)BUG FIXES:
Unable to create logging subsystem with AdditionalLocationOffset due to missing root logger options
warning logs during acceptance testing (#955)v2.14.0
Compare Source
NOTES:
BUG FIXES:
TF_LOG_PATH_MASK
environment variable value when bothTF_ACC_LOG_PATH
andTF_LOG_PATH_MASK
are set (#938)@caller
in SDK logging entries accurately reflected calling code location (#939)TF_VAR_*
, when calling Terraform CLI commands (#937)@caller
in SDK logging entries accurately reflected calling code location (#939)v2.13.0
Compare Source
NOTES:
TestCheckNoResourceAttr
andTestCheckResourceAttrSet
will 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)nil
error
with 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 theWARN
level (e.g.TF_LOG=WARN terraform apply
) can help locate the problematic error by searching for thedetected empty error string
log message. (#914)ENHANCEMENTS:
TestCheckNoResourceAttr
,TestCheckResourceAttr
, andTestCheckResourceAttrSet
(#920)CHECKPOINT_DISABLE=1
set, removing extraneous calls to checkpoint.hashicorp.com to check for latest Terraform CLI version (#913)BUG FIXES:
Schema
withTypeInt
to acceptstring
values fromDefaultFunc
, such asEnvDefaultFunc
(#841) (#841)error
to diagnostic conversion for a non-nil
error with anError()
method that returns an empty string (""
) (#914)ToDiagFunc()
function when used insideSchema
typeElem
field, such as validatingTypeList
elements (#915)v2.12.0
ENHANCEMENTS:
TestStep
typeConfig
field (#722)BUG FIXES:
ComputedIf
,ForceNewIf
, andForceNewIfChange
since 2.11.0, using a warning log for backwards compatibility instead (#909)v2.11.0
Compare Source
NOTES:
terraform-plugin-log
dependency 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_resource
logger inherits theTF_LOG
,TF_LOG_PATH_MASK
, andTF_ACC_LOG_PATH
environment variable settings, similar to the prior logging. TheTF_LOG_SDK_HELPER_RESOURCE
environment variable can be used to separately control the new logger level. (#891)TF_LOG_SDK_HELPER_SCHEMA
will be able to set the log level for the SDK separately from the provider. (#837)Schema
typeDiffSuppressOnRefresh
field opts in to usingDiffSuppressFunc
to 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 haveDiffSuppressFunc
and so would ideally be on by default, but it is opt-in for backward compatibility reasons. (#882)Debug
function has been deprecated in preference of setting theDebug
field in theServeOpts
passed into theServe
function. (#857)ENHANCEMENTS:
TestStep
typeSkipFunc
field. (#889)sdk.helper_resource
logger and extensiveTRACE
log entries (#891)DiffSuppressOnRefresh
field to theSchema
type (#882)TF_LOG_SDK_PROTO_DATA_DIR
environment variable (#857)BUG FIXES:
show
command eachTestStep
unless usingTestCase.IDRefreshName
(#892)v2.10.1
Compare Source
v2.10.0
Compare Source
v2.9.0
Compare Source
v2.8.0
Compare Source
v2.7.1
Compare Source
v2.7.0
Compare Source
v2.6.1
Compare Source
v2.6.0
Compare Source
v2.5.0
Compare Source
v2.4.4
Compare Source
v2.4.3
Compare Source
v2.4.2
Compare Source
v2.4.1
Compare Source
v2.4.0
Compare Source
v2.3.0
Compare Source
v2.2.0
Compare Source
v2.1.0
Compare Source
v2.0.4
Compare Source
v2.0.3
Compare Source
v2.0.2
Compare Source
v2.0.1
Compare Source
v2.0.0
Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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.