Skip to content

Migrate Elasticsearch enrich policy resource and data source to Terraform Plugin Framework #1219

@tobio

Description

@tobio

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions