-
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.
chore(deps): bump phillbaker/elasticsearch from 1.6.0 to 2.0.0 (#13)
Bump phillbaker/elasticsearch version from 1.6.0 to 2.0.0 BREAKING CHANGE: All deprecated `elasticsearch_opendistro_*` resources have been renamed to `elasticsearch_opensearch_*`. After upgrading the module version you have to import/delete all `elasticsearch_*` resources: ``` for OLD_NAME in $(terraform state list | grep \.elasticsearch_opendistro_); do NEW_NAME="${OLD_NAME/.elasticsearch_opendistro_/.elasticsearch_opensearch_}" IDENTIFIER="$(perl -ne '/\["(.+)"\]/ && print "$1\n";' <<< "${OLD_NAME}")" terraform import "${NEW_NAME}" "${IDENTIFIER}" && terraform state rm "${OLD_NAME}" done ```
- Loading branch information
1 parent
651553d
commit 2c4422d
Showing
10 changed files
with
26 additions
and
28 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
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,8 +1,8 @@ | ||
resource "elasticsearch_opendistro_ism_policy" "ism_policy" { | ||
resource "elasticsearch_opensearch_ism_policy" "ism_policy" { | ||
for_each = local.ism_policies | ||
|
||
policy_id = each.key | ||
body = jsonencode({ "policy" = each.value }) | ||
|
||
depends_on = [elasticsearch_opendistro_roles_mapping.master_user_arn] | ||
depends_on = [elasticsearch_opensearch_roles_mapping.master_user_arn] | ||
} |
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