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

[FEATURE] - Creating multiple index in a loop #231

Open
s-pramod opened this issue Jan 7, 2025 · 1 comment
Open

[FEATURE] - Creating multiple index in a loop #231

s-pramod opened this issue Jan 7, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@s-pramod
Copy link

s-pramod commented Jan 7, 2025

Is your feature request related to a problem?

I am not able to create indexes for multiple collections in a loop, have to call/create a separate resource for each index

What solution would you like?

We must be able to create indexes in a loop for multiple collections.

What alternatives have you considered?

Instead of taking the url as part of provider, can we pass the collection_endpoint as part of the resource opensearch_index.

Do you have any additional context?

We are required to call the module individually for each collection endpoint, then it is working.
module "aoss-index-1" {
source = "./aoss-index"
}

module "aoss-index-2" {
source = "./aoss-index"
}

This must work like below

module "aoss-index" {
source = "./aoss-index"
for_each = var.indexes
}

@krisfreedain
Copy link
Member

Catch All Triage - 1, 2, 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants