--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "opensearch_index_template Resource - terraform-provider-opensearch" subcategory: "" description: |- Provides an Opensearch index template resource. --- # opensearch_index_template (Resource) Provides an Opensearch index template resource. ## Example Usage ```terraform # Create an index template resource "opensearch_index_template" "template_1" { name = "template_1" body = < ## Schema ### Required - `body` (String) The JSON body of the index template. - `name` (String) The name of the index template. ### Read-Only - `id` (String) The ID of this resource. ## Import Import is supported using the following syntax: ```shell terraform import opensearch_index_template.template_1 template_1 ```