-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Hai Yan <oeyh@amazon.com>
- Loading branch information
Showing
9 changed files
with
168 additions
and
21 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
3 changes: 1 addition & 2 deletions
3
...s/rds-source/src/main/resources/org/opensearch/dataprepper/transforms/rules/rds-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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
plugin_name: "rds" | ||
apply_when: | ||
- "$..source.rds" | ||
- "$..source.documentdb.s3_bucket" | ||
- "$..source.rds" |
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,81 @@ | ||
"<<pipeline-name>>": | ||
workers: "<<$.<<pipeline-name>>.workers>>" | ||
delay: "<<$.<<pipeline-name>>.delay>>" | ||
buffer: "<<$.<<pipeline-name>>.buffer>>" | ||
source: | ||
rds: "<<$.<<pipeline-name>>.source.rds>>" | ||
routes: | ||
- initial_load: 'getMetadata("ingestion_type") == "EXPORT"' | ||
- stream_load: 'getMetadata("ingestion_type") == "STREAM"' | ||
sink: | ||
- s3: | ||
routes: | ||
- initial_load | ||
aws: | ||
region: "<<$.<<pipeline-name>>.source.rds.s3_region>>" | ||
sts_role_arn: "<<$.<<pipeline-name>>.source.rds.aws.sts_role_arn>>" | ||
sts_external_id: "<<$.<<pipeline-name>>.source.rds.aws.sts_external_id>>" | ||
sts_header_overrides: "<<$.<<pipeline-name>>.source.rds.aws.sts_header_overrides>>" | ||
bucket: "<<$.<<pipeline-name>>.source.rds.s3_bucket>>" | ||
threshold: | ||
event_collect_timeout: "120s" | ||
maximum_size: "2mb" | ||
aggregate_threshold: | ||
maximum_size: "128mb" | ||
flush_capacity_ratio: 0 | ||
object_key: | ||
path_prefix: "${getMetadata(\"s3_partition_key\")}" | ||
codec: | ||
event_json: | ||
default_bucket_owner: "<<FUNCTION_NAME:getAccountIdFromRole,PARAMETER:$.<<pipeline-name>>.source.rds.aws.sts_role_arn>>" | ||
- s3: | ||
routes: | ||
- stream_load | ||
aws: | ||
region: "<<$.<<pipeline-name>>.source.rds.s3_region>>" | ||
sts_role_arn: "<<$.<<pipeline-name>>.source.rds.aws.sts_role_arn>>" | ||
sts_external_id: "<<$.<<pipeline-name>>.source.rds.aws.sts_external_id>>" | ||
sts_header_overrides: "<<$.<<pipeline-name>>.source.rds.aws.sts_header_overrides>>" | ||
bucket: "<<$.<<pipeline-name>>.source.rds.s3_bucket>>" | ||
threshold: | ||
event_collect_timeout: "15s" | ||
maximum_size: "1mb" | ||
aggregate_threshold: | ||
maximum_size: "128mb" | ||
flush_capacity_ratio: 0 | ||
object_key: | ||
path_prefix: "${getMetadata(\"s3_partition_key\")}" | ||
codec: | ||
event_json: | ||
default_bucket_owner: "<<FUNCTION_NAME:getAccountIdFromRole,PARAMETER:$.<<pipeline-name>>.source.rds.aws.sts_role_arn>>" | ||
"<<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.rds.s3_region>>" | ||
sts_role_arn: "<<$.<<pipeline-name>>.source.rds.aws.sts_role_arn>>" | ||
sts_external_id: "<<$.<<pipeline-name>>.source.rds.aws.sts_external_id>>" | ||
sts_header_overrides: "<<$.<<pipeline-name>>.source.rds.aws.sts_header_overrides>>" | ||
acknowledgments: true | ||
delete_s3_objects_on_read: true | ||
disable_s3_metadata_in_event: true | ||
scan: | ||
folder_partitions: | ||
depth: "<<FUNCTION_NAME:calculateDepthForRdsSource,PARAMETER:$.<<pipeline-name>>.source.rds.s3_prefix>>" | ||
max_objects_per_ownership: 50 | ||
buckets: | ||
- bucket: | ||
name: "<<$.<<pipeline-name>>.source.rds.s3_bucket>>" | ||
filter: | ||
include_prefix: ["<<FUNCTION_NAME:getIncludePrefixForRdsSource,PARAMETER:$.<<pipeline-name>>.source.rds.s3_prefix>>"] | ||
scheduling: | ||
interval: "60s" | ||
processor: "<<$.<<pipeline-name>>.processor>>" | ||
sink: "<<$.<<pipeline-name>>.sink>>" | ||
routes: "<<$.<<pipeline-name>>.routes>>" # In placeholder, routes or route (defined as alias) will be transformed to route in json as route will be primarily picked in pipelineModel. |
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