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

Forward setting from primary to replica #195

Open
rmennanov opened this issue Sep 15, 2023 · 1 comment
Open

Forward setting from primary to replica #195

rmennanov opened this issue Sep 15, 2023 · 1 comment

Comments

@rmennanov
Copy link

rmennanov commented Sep 15, 2023

Terraform Version

  • Terraform version: v1.5.7
  • Provider version: v0.5.2

Affected Resource(s)

  • algolia_index
resource "algolia_index" "primary" {
  name = "primary-index"
}

resource "algolia_index" "replica" {
  name               = "replica-index"
  primary_index_name = algolia_index.primary.name
}

Expected Behavior

According to Alogilia docs, is it should be possible to specify how setting will be synchronized between primary index and standard replica link

Actual Behavior

Not able to set that flag while creating standard replica index.

It any possibilities to do it currently? Or any plan for that flag in provider implementation?

Thanks:)

@k-yomo
Copy link
Owner

k-yomo commented Sep 15, 2023

@rmennanov
Thank you for opening the issue. Currently we don't provide a way to forwardToReplicas because it can conflict with the configuration written in terraform and tf state.
e.g what if we change the same field in both primary and secondary which use forwardToReplicas

One simple approach is to use local or module for reusing the config for both primary and secondary.

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

2 participants