-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Add Basic Support for OpenSearch Ingestion controls from th…
…e Migration Console (#621) This change introduces basic support for creating/starting/stopping an OpenSearch Ingestion pipeline. It provides an experimental CDK option for enabling OSI on the migration console. This option does not prevent creating the OSI python tool on the Migration Console container, but rather controls creating the IAM roles and policies related to OSI It sets up necessary IAM policies for the Migration Console to assume as a 'Manager" of the OSI pipeline. It also creates a pipeline role that will be assumed by OSI to communicate with the source and target clusters Adds the osiMigration.py script to the migration console for controlling OSI pipelines. This script supports starting/stopping a pipeline as well as creating a pipeline from provided command arguments or creating the pipeline from inferred settings based on the associated deployment. See README update for details on executing. Once this is merged, I expect to copy and paste something similar to the wiki. Signed-off-by: Tanner Lewis <[email protected]>
- Loading branch information
Showing
16 changed files
with
578 additions
and
29 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
2 changes: 2 additions & 0 deletions
2
...ture/dockerSolution/src/main/docker/migrationConsole/lib/osiMigrationLib/requirements.txt
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
boto3 | ||
coloredlogs |
404 changes: 404 additions & 0 deletions
404
TrafficCapture/dockerSolution/src/main/docker/migrationConsole/osiMigration.py
Large diffs are not rendered by default.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
TrafficCapture/dockerSolution/src/main/docker/migrationConsole/osiPipelineTemplate.yaml
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: "2" | ||
# NOTE: Placeholder values will be automatically populated and do not need to be changed | ||
<AWS_SECRET_CONFIG_PLACEHOLDER> | ||
|
||
historical-data-migration: | ||
|
||
# Source cluster configuration | ||
source: | ||
opensearch: | ||
hosts: | ||
- <SOURCE_CLUSTER_ENDPOINT_PLACEHOLDER> | ||
indices: | ||
# Indices to exclude - exclude system indices by default | ||
exclude: | ||
- index_name_regex: \.* | ||
<SOURCE_AUTH_OPTIONS_PLACEHOLDER> | ||
|
||
# Target cluster configuration | ||
sink: | ||
- opensearch: | ||
hosts: | ||
- <TARGET_CLUSTER_ENDPOINT_PLACEHOLDER> | ||
# Derive index name from record metadata | ||
index: ${getMetadata("opensearch-index")} | ||
# Use the same document ID as the source cluster document | ||
document_id: ${getMetadata("opensearch-document_id")} | ||
<TARGET_AUTH_OPTIONS_PLACEHOLDER> |
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
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
Oops, something went wrong.