Rupa Lahiri
Rupa Lahiri
The following steps work for me - Post creating the resources through terraform, and a rollover, terraform apply did not throw errors. This is using OpenSearch provider version = "2.0.0"...
Can you please try with index specified as follows? ``` resource "opensearch_index" "index" { name = "test-logs-000001" number_of_shards = 3 number_of_replicas = 1 aliases = jsonencode( { "test-logs" = {...
@malaquf We have specified ``` Computed: true ``` for number_of_replicas https://github.com/opensearch-project/terraform-provider-opensearch/pull/123/files The PR above is merged. This fixed the error thrown when index configuration has no number_of_replicas specified.
@malaquf I created a policy using Terraform code for the following example https://opensearch.org/docs/latest/im-plugin/ism/policies/#sample-policy-with-ism-template-for-auto-rollover Next I waited for the rollover to happen. Applying the Terraform code again did not give errors....
@EmilieDel Could you please share your OpenSearch provider configuration?
@EmilieDel The following Terraform code works for me ``` terraform { required_providers { opensearch = { source = "opensearch-project/opensearch" version = "2.2.1" } } } provider "opensearch" { url =...
Thank you @parente
The following configuration is working for AWS OpenSearch v2.9 Terraform v1.6.0 https://github.com/rblcoder/terraform-opensearch-samples/blob/main/aws_opensearch_basic_auth_manual/main.tf ``` provider "opensearch" { url = "url" healthcheck = "false" aws_region = "region" username = "username" password =...
@joewragg Please share your terraform version, terraform provider version along with complete terraform code including provider configuration.
@joewragg The following terraform code works for me. Terraform v1.7.5 ``` terraform { required_providers { opensearch = { source = "opensearch-project/opensearch" version = "2.2.1" } } } provider "opensearch" {...