Skip to content
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

[BUG] Problem when importing multiple elasticsearch_snapshot_repository ressources in same workspace #364

Open
ChrisFraun opened this issue Feb 1, 2024 · 0 comments

Comments

@ChrisFraun
Copy link

ChrisFraun commented Feb 1, 2024

I didn't dig too deep into this issue, so there is also a chance that I simply used the wrong command.
My setup is the following I have one workspace where I manage two Opensearch clusters. My task is basically moving the configuration and module from A to B.
However, I was not able to successfulle import any of the aws_elasticsearch_domain_policy with:
terraform import aws_elasticsearch_domain_policy.example domain_name as indicated in hashicorp/terraform-provider-aws#22691

Also I was not able to differentiate between the two snapshot repository configurations:
terraform import 'module.opensearch-A.elasticsearch_snapshot_repository.repo[0]' 's3-name' and
terraform import 'module.opensearch-B.elasticsearch_snapshot_repository.repo[0]' 's3-name'
resulted in having the same snapshot repository imported instead of separate ones. I found no way to differentiate between the two ressources.

The same happened to role mappings.

Probably I missed something but I would be greatful for any advice,

Thanks!

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

No branches or pull requests

1 participant