|
1 | 1 | resource "opensearch_index" "index" { |
2 | 2 | for_each = local.indices |
3 | 3 |
|
4 | | - name = each.key |
5 | | - number_of_shards = try(each.value.number_of_shards, "") |
6 | | - number_of_replicas = try(each.value.number_of_replicas, "") |
7 | | - refresh_interval = try(each.value.refresh_interval, "") |
8 | | - mappings = jsonencode(try(each.value.mappings, {})) |
9 | | - aliases = jsonencode(try(each.value.aliases, {})) |
10 | | - force_destroy = true |
| 4 | + name = each.key |
| 5 | + number_of_shards = try(each.value.number_of_shards, "") |
| 6 | + number_of_replicas = try(each.value.number_of_replicas, "") |
| 7 | + refresh_interval = try(each.value.refresh_interval, "") |
| 8 | + mappings = jsonencode(try(each.value.mappings, {})) |
| 9 | + aliases = jsonencode(try(each.value.aliases, {})) |
| 10 | + analysis_analyzer = try(each.value.analysis_analyzer, null) |
| 11 | + analysis_char_filter = try(each.value.analysis_char_filter, null) |
| 12 | + analysis_filter = try(each.value.analysis_filter, null) |
| 13 | + analysis_normalizer = try(each.value.analysis_normalizer, null) |
| 14 | + analysis_tokenizer = try(each.value.analysis_tokenizer, null) |
| 15 | + analyze_max_token_count = try(each.value.analyze_max_token_count, null) |
| 16 | + auto_expand_replicas = try(each.value.auto_expand_replicas, null) |
| 17 | + blocks_metadata = try(each.value.blocks_metadata, null) |
| 18 | + blocks_read = try(each.value.blocks_read, null) |
| 19 | + blocks_read_only = try(each.value.blocks_read_only, null) |
| 20 | + blocks_read_only_allow_delete = try(each.value.blocks_read_only_allow_delete, null) |
| 21 | + blocks_write = try(each.value.blocks_write, null) |
| 22 | + codec = try(each.value.codec, null) |
| 23 | + default_pipeline = try(each.value.default_pipeline, null) |
| 24 | + gc_deletes = try(each.value.gc_deletes, null) |
| 25 | + highlight_max_analyzed_offset = try(each.value.highlight_max_analyzed_offset, null) |
| 26 | + include_type_name = try(each.value.include_type_name, null) |
| 27 | + index_similarity_default = try(each.value.index_similarity_default, null) |
| 28 | + indexing_slowlog_level = try(each.value.indexing_slowlog_level, null) |
| 29 | + indexing_slowlog_source = try(each.value.indexing_slowlog_source, null) |
| 30 | + indexing_slowlog_threshold_index_debug = try(each.value.indexing_slowlog_threshold_index_debug, null) |
| 31 | + indexing_slowlog_threshold_index_info = try(each.value.indexing_slowlog_threshold_index_info, null) |
| 32 | + indexing_slowlog_threshold_index_trace = try(each.value.indexing_slowlog_threshold_index_trace, null) |
| 33 | + indexing_slowlog_threshold_index_warn = try(each.value.indexing_slowlog_threshold_index_warn, null) |
| 34 | + load_fixed_bitset_filters_eagerly = try(each.value.load_fixed_bitset_filters_eagerly, null) |
| 35 | + max_docvalue_fields_search = try(each.value.max_docvalue_fields_search, null) |
| 36 | + max_inner_result_window = try(each.value.max_inner_result_window, null) |
| 37 | + max_ngram_diff = try(each.value.max_ngram_diff, null) |
| 38 | + max_refresh_listeners = try(each.value.max_refresh_listeners, null) |
| 39 | + max_regex_length = try(each.value.max_regex_length, null) |
| 40 | + max_rescore_window = try(each.value.max_rescore_window, null) |
| 41 | + max_result_window = try(each.value.max_result_window, null) |
| 42 | + max_script_fields = try(each.value.max_script_fields, null) |
| 43 | + max_shingle_diff = try(each.value.max_shingle_diff, null) |
| 44 | + max_terms_count = try(each.value.max_terms_count, null) |
| 45 | + number_of_routing_shards = try(each.value.number_of_routing_shards, null) |
| 46 | + rollover_alias = try(each.value.rollover_alias, null) |
| 47 | + routing_allocation_enable = try(each.value.routing_allocation_enable, null) |
| 48 | + routing_partition_size = try(each.value.routing_partition_size, null) |
| 49 | + routing_rebalance_enable = try(each.value.routing_rebalance_enable, null) |
| 50 | + search_idle_after = try(each.value.search_idle_after, null) |
| 51 | + search_slowlog_level = try(each.value.search_slowlog_level, null) |
| 52 | + search_slowlog_threshold_fetch_debug = try(each.value.search_slowlog_threshold_fetch_debug, null) |
| 53 | + search_slowlog_threshold_fetch_info = try(each.value.search_slowlog_threshold_fetch_info, null) |
| 54 | + search_slowlog_threshold_fetch_trace = try(each.value.search_slowlog_threshold_fetch_trace, null) |
| 55 | + search_slowlog_threshold_fetch_warn = try(each.value.search_slowlog_threshold_fetch_warn, null) |
| 56 | + search_slowlog_threshold_query_debug = try(each.value.search_slowlog_threshold_query_debug, null) |
| 57 | + search_slowlog_threshold_query_info = try(each.value.search_slowlog_threshold_query_info, null) |
| 58 | + search_slowlog_threshold_query_trace = try(each.value.search_slowlog_threshold_query_trace, null) |
| 59 | + search_slowlog_threshold_query_warn = try(each.value.search_slowlog_threshold_query_warn, null) |
| 60 | + shard_check_on_startup = try(each.value.shard_check_on_startup, null) |
| 61 | + sort_field = try(each.value.sort_field, null) |
| 62 | + sort_order = try(each.value.sort_order, null) |
| 63 | + force_destroy = true |
11 | 64 |
|
12 | 65 | depends_on = [ |
13 | 66 | opensearch_index_template.index_template, |
|
0 commit comments