forked from opensearch-project/data-prepper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing logging level for config transformation and fixing rule (ope…
…nsearch-project#4466) * Changing logging level for config transformation and fixing rule Signed-off-by: srigovs <[email protected]> * Adding absolute path for template and rule Signed-off-by: srigovs <[email protected]> * Fix template indentation Signed-off-by: srigovs <[email protected]> * Fix template indentation Signed-off-by: srigovs <[email protected]> * Adding event json to codec in template Signed-off-by: srigovs <[email protected]> * Handled PipelinesDataFlow mapping and addressed array type when replacing Node Signed-off-by: srigovs <[email protected]> * Add relative path as file stream Signed-off-by: srigovs <[email protected]> * Fix environment variable Signed-off-by: srigovs <[email protected]> --------- Signed-off-by: srigovs <[email protected]>
- Loading branch information
1 parent
aea97da
commit 1007317
Showing
12 changed files
with
303 additions
and
212 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
3 changes: 3 additions & 0 deletions
3
data-prepper-pipeline-parser/src/main/resources/rules/documentdb-rule.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,3 @@ | ||
apply_when: | ||
- "$..source.documentdb" | ||
- "$..source.documentdb.s3_bucket" |
76 changes: 76 additions & 0 deletions
76
data-prepper-pipeline-parser/src/main/resources/templates/documentdb-template.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,76 @@ | ||
"<<pipeline-name>>": | ||
workers: "<<$.<<pipeline-name>>.workers>>" | ||
delay: "<<$.<<pipeline-name>>.delay>>" | ||
buffer: "<<$.<<pipeline-name>>.buffer>>" | ||
source: | ||
documentdb: "<<$.<<pipeline-name>>.source.documentdb>>" | ||
routes: | ||
- initial_load: 'getMetadata("ingestion_type") == "EXPORT"' | ||
- stream_load: 'getMetadata("ingestion_type") == "STREAM"' | ||
sink: | ||
- s3: | ||
routes: | ||
- initial_load | ||
aws: | ||
region: "<<$.<<pipeline-name>>.source.documentdb.s3_region>>" | ||
sts_role_arn: "<<$.<<pipeline-name>>.source.documentdb.opensearch.aws.sts_role_arn>>" | ||
sts_external_id: "<<$.<<pipeline-name>>.source.documentdb.opensearch.aws.sts_external_id>>" | ||
sts_header_overrides: "<<$.<<pipeline-name>>.source.documentdb.opensearch.aws.sts_header_overrides>>" | ||
bucket: "<<$.<<pipeline-name>>.source.documentdb.s3_bucket>>" | ||
threshold: | ||
event_collect_timeout: "120s" | ||
maximum_size: "2mb" | ||
aggregate_threshold: | ||
maximum_size: "256kb" | ||
flush_capacity_ratio: 0 | ||
object_key: | ||
path_prefix: "${getMetadata(\"s3_partition_key\")}" | ||
codec: | ||
event_json: | ||
- s3: | ||
routes: | ||
- stream_load | ||
aws: | ||
region: "<<$.<<pipeline-name>>.source.documentdb.s3_region>>" | ||
sts_role_arn: "<<$.<<pipeline-name>>.source.documentdb.opensearch.aws.sts_role_arn>>" | ||
sts_external_id: "<<$.<<pipeline-name>>.source.documentdb.opensearch.aws.sts_external_id>>" | ||
sts_header_overrides: "<<$.<<pipeline-name>>.source.documentdb.opensearch.aws.sts_header_overrides>>" | ||
bucket: "<<$.<<pipeline-name>>.source.documentdb.s3_bucket>>" | ||
threshold: | ||
event_collect_timeout: "30s" | ||
maximum_size: "1mb" | ||
aggregate_threshold: | ||
maximum_size: "128mb" | ||
flush_capacity_ratio: 0 | ||
object_key: | ||
path_prefix: "${getMetadata(\"s3_partition_key\")}" | ||
codec: | ||
event_json: | ||
|
||
"<<pipeline-name>>-s3": | ||
workers: "<<$.<<pipeline-name>>.workers>>" | ||
delay: "<<$.<<pipeline-name>>.delay>>" | ||
buffer: "<<$.<<pipeline-name>>.buffer>>" | ||
source: | ||
s3: | ||
codec: | ||
event_json: | ||
compression: "none" | ||
aws: | ||
region: "<<$.<<pipeline-name>>.source.documentdb.s3_region>>" | ||
sts_role_arn: "<<$.<<pipeline-name>>.source.documentdb.opensearch.aws.sts_role_arn>>" | ||
sts_external_id: "<<$.<<pipeline-name>>.source.documentdb.opensearch.aws.sts_external_id>>" | ||
sts_header_overrides: "<<$.<<pipeline-name>>.source.documentdb.opensearch.aws.sts_header_overrides>>" | ||
acknowledgments: true | ||
delete_s3_objects_on_read: true | ||
scan: | ||
buckets: | ||
- bucket: | ||
name: "<<$.<<pipeline-name>>.source.documentdb.s3_bucket>>" | ||
filter: | ||
include_prefix: ["<<FUNCTION_NAME:getSourceCoordinationIdentifierEnvVariable,PARAMETER:$.<<pipeline-name>>.source.documentdb.s3_prefix>>"] | ||
scheduling: | ||
interval: "60s" | ||
processor: "<<$.<<pipeline-name>>.processor>>" | ||
sink: "<<$.<<pipeline-name>>.sink>>" | ||
routes: "<<$.<<pipeline-name>>.routes>>" |
3 changes: 0 additions & 3 deletions
3
data-prepper-pipeline-parser/src/resources/rules/documentdb-rule.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.