Skip to content

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

@ChrisFraun

Description

@ChrisFraun

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions