Comments (4)
[Triage] Adding @prudhvigodithi to take a look on this.
Thanks.
from terraform-provider-opensearch.
Hey @arichtman-srt can you please test with the latest release? https://registry.terraform.io/providers/opensearch-project/opensearch/2.0.0-beta.1
Thank you
from terraform-provider-opensearch.
Tested today with 2.1.0 and no working with this example:
Example from doc opensearch_index_template resource are not working. I had to update the json.
# Create an index template
resource "opensearch_index_template" "logs_1" {
name = "logs_1"
body = <<EOF
{
"index_patterns": [ "logs*" ],
"template": {
"settings": {
"index": {
"number_of_shards": "1",
"number_of_replicas": "0",
"refresh_interval": "5s"
}
}
}
}
EOF
}
# Create a simple index
resource "opensearch_index" "logs-01" {
name = "logs-01"
}
as output
Terraform will perform the following actions:
# opensearch_index.logs-01 will be updated in-place
~ resource "opensearch_index" "logs-01" {
id = "logs-01"
name = "logs-01"
- number_of_replicas = "0" -> null
- refresh_interval = "5s" -> null
# (2 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
opensearch_index.logs-01: Modifying... [id=logs-01]
╷
│ Error: elastic: Error 400 (Bad Request): failed to parse setting [index.refresh_interval] with value [] as a time value: unit is missing or unrecognized [type=illegal_argument_exception]
│
│ with opensearch_index.logs-01,
│ on main.tf line 50, in resource "opensearch_index" "logs-01":
│ 50: resource "opensearch_index" "logs-01" {
from terraform-provider-opensearch.
As a workaround
# Create a simple index
resource "opensearch_index" "logs-01" {
name = "logs-01"
lifecycle {
ignore_changes = [
number_of_replicas,
refresh_interval
]
}
}
from terraform-provider-opensearch.
Related Issues (20)
- backend_roles and and_backend_roles - https://registry.terraform.io/providers/opensearch-project/opensearch/latest/docs/resources/roles_mapping[BUG] HOT 2
- github.com/hashicorp/terraform-plugin-sdk/v2-v2.12.0: 4 vulnerabilities (highest severity is: 9.8) - autoclosed HOT 3
- [BUG]opensearch_role_mapping resource - fails HOT 3
- [FEATURE] Upgrade Provider to Use Native Terraform Schema HOT 3
- [BUG] Configuring Anomaly Detector HOT 4
- [BUG] Opensearch provider PGP key may be expired HOT 2
- [FEATURE] - implement multi-language provider HOT 1
- [BUG] invalid character 'A' looking for beginning of value HOT 10
- Monitor creation using templatefile changing JSON file true value to false HOT 3
- Release v2.2.1 OpenSearch Terraform Provider. HOT 4
- [BUG] Index replacement with dynamic properties HOT 6
- [BUG] Unable to configure opensearch index with index_knn setting = true HOT 1
- [BUG] opengpg: key expired HOT 6
- [FEATURE] OpenSearch Plugin Connectors and other commands HOT 2
- [BUG] Regression in AWS assumed role auth between 2.2.0 and 2.2.1 HOT 2
- [BUG] Planning failed when cluster_routing_allocation_enable is used opensearch_cluster_settings resource HOT 2
- [BUG] Creating saved_object of type search results in dynamic introduction of [attributes] within [search] is not allowed [type=strict_dynamic_mapping_exception] HOT 9
- [BUG]Provider produced inconsistent final plan HOT 2
- [BUG] Allow host_override outside of AWS
- [UPGRADE] Update the Project go version to 1.22 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-opensearch.