INVS-0: upgrade the provider to v2 SDK. #647
Draft
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.
golang version is updated to 1.22.
Upgrade was performed semi-automatically with the tf-sdk-migrator tool.
Manual changes:
Manual changes had to be made afterwards in the provider.go and provider_test.go files per Removal of terraform.ResourceProvider interface section.
sumologic/resource_sumologic_cse_entity_normalization_configuration.go - fixed field names (typo)
Other file changes are boiling down to updating module import paths.
The v1 provider SDK is no longer maintained by Terraform.
This upgrade was triggered by the investigation of INVS-2114 showing that v1 SDK has limited capabilities in terms of verifying the plan generated in tests.
V2 SDK has better support for running the tests from IDE + debugging.
V2 plugin SDK will by default print out the plan as seen in user environment: