Skip to content

Commit 686ead7

Browse files
authored
Call out that settings are not included during an index import (#1403)
1 parent ec20cea commit 686ead7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/resources/elasticsearch_index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ Import is supported using the following syntax:
195195
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
196196

197197
```shell
198-
# NOTE: while importing index resource, keep in mind, that some of the default index settings will be imported into the TF state too
199-
# You can later adjust the index configuration to account for those imported settings
198+
# Importing a index resource is minimal and may result in seemingly unnecessary plan changes.
199+
# Index settings are *not* included in the import, and so any settings defined in the elasticstack_elasticsearch_index
200+
# resource definition will show up as an addition in the next `terraform plan` operation.
201+
# Applying these settings 'changes' should be safe, resulting in no actual change to the backing index.
200202
terraform import elasticstack_elasticsearch_index.my_index <cluster_uuid>/<index_name>
201203
```
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# NOTE: while importing index resource, keep in mind, that some of the default index settings will be imported into the TF state too
2-
# You can later adjust the index configuration to account for those imported settings
1+
# Importing a index resource is minimal and may result in seemingly unnecessary plan changes.
2+
# Index settings are *not* included in the import, and so any settings defined in the elasticstack_elasticsearch_index
3+
# resource definition will show up as an addition in the next `terraform plan` operation.
4+
# Applying these settings 'changes' should be safe, resulting in no actual change to the backing index.
35
terraform import elasticstack_elasticsearch_index.my_index <cluster_uuid>/<index_name>
46

0 commit comments

Comments
 (0)