You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The existing enrich policy resource and data source are based on the legacy TF SDKv2. We want to migrate both the resource and data source to the Terraform Plugin Framework.
You'll need to focus on the files in internal/elasticsearch/enrich
Make sure to structure the new plugin framework based codebase consistent with the system user resource in internal/elasticsearch/security/system_user
Make sure to copy the existing acceptance tests into the new codebase
Make sure the existing tests pass
Add an acceptance test verifying that a legacy resource is correctly handled by the new plugin framework resource. Look at the TestAccResourceSecuritySystemUserFromSDK test in internal/elasticsearch/system_user/acc_test.go as an example of how to do this.
Add an entry to CHANGELOG.md referencing the created PR
The existing data source uses the read functionality of the resource. Maintain this level of code re-use.