Skip to content

Conversation

@tobio
Copy link
Member

@tobio tobio commented Nov 13, 2025

Fixes #1440

@tobio tobio requested a review from nick-benoit November 13, 2025 10:08
@tobio tobio self-assigned this Nov 13, 2025
Copilot AI review requested due to automatic review settings November 13, 2025 10:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds import functionality to the Elasticsearch security role mapping resource, addressing issue #1440. The implementation follows the Terraform provider framework's standard pattern for enabling resource imports.

Key Changes:

  • Adds ImportState method to enable importing existing role mappings into Terraform state
  • Includes acceptance test to verify import functionality works correctly

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
internal/elasticsearch/security/role_mapping/resource.go Implements ImportState method and adds interface compliance checks for import support
internal/elasticsearch/security/role_mapping/acc_test.go Adds import state verification test step to existing acceptance test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] elasticstack_elasticsearch_security_role_mapping resources can no longer be imported

2 participants