-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(provider): migrate to dedicated OpenSearch provider (#59)
BREAKING CHANGE: All `elasticsearch_*` resources have been renamed to `opensearch_*`.
- Loading branch information
1 parent
c58cef1
commit 0388438
Showing
14 changed files
with
56 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
resource "elasticsearch_composable_index_template" "composable_index_template" { | ||
resource "opensearch_composable_index_template" "composable_index_template" { | ||
for_each = local.composable_index_templates | ||
|
||
name = each.key | ||
body = jsonencode(each.value) | ||
|
||
depends_on = [ | ||
elasticsearch_opensearch_roles_mapping.master_user_arn, | ||
elasticsearch_opensearch_roles_mapping.master_user_name, | ||
opensearch_roles_mapping.master_user_arn, | ||
opensearch_roles_mapping.master_user_name, | ||
aws_route53_record.opensearch | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
--- | ||
index_patterns: | ||
- example-* | ||
settings: | ||
index: | ||
number_of_shards: "2" | ||
number_of_replicas: "1" | ||
refresh_interval: 30s | ||
mappings: | ||
_source: | ||
enabled: false | ||
properties: | ||
created_at: | ||
format: EEE MMM dd HH:mm:ss Z YYYY | ||
type: date | ||
host_name: | ||
type: keyword | ||
template: | ||
settings: | ||
index: | ||
number_of_shards: "2" | ||
number_of_replicas: "1" | ||
refresh_interval: 30s | ||
mappings: | ||
_source: | ||
enabled: false | ||
properties: | ||
created_at: | ||
format: EEE MMM dd HH:mm:ss Z YYYY | ||
type: date | ||
host_name: | ||
type: keyword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
resource "elasticsearch_index_template" "index_template" { | ||
resource "opensearch_index_template" "index_template" { | ||
for_each = local.index_templates | ||
|
||
name = each.key | ||
body = jsonencode(each.value) | ||
|
||
depends_on = [ | ||
elasticsearch_opensearch_roles_mapping.master_user_arn, | ||
elasticsearch_opensearch_roles_mapping.master_user_name, | ||
opensearch_roles_mapping.master_user_arn, | ||
opensearch_roles_mapping.master_user_name, | ||
aws_route53_record.opensearch | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
resource "elasticsearch_opensearch_ism_policy" "ism_policy" { | ||
resource "opensearch_ism_policy" "ism_policy" { | ||
for_each = local.ism_policies | ||
|
||
policy_id = each.key | ||
body = jsonencode({ "policy" = each.value }) | ||
|
||
depends_on = [ | ||
elasticsearch_opensearch_roles_mapping.master_user_arn, | ||
elasticsearch_opensearch_roles_mapping.master_user_name, | ||
opensearch_roles_mapping.master_user_arn, | ||
opensearch_roles_mapping.master_user_name, | ||
aws_route53_record.opensearch | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters