Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,18 +1,36 @@
# Name of the Data Prepper pipeline
historical-data-migration:
# Source cluster configuration
source:
opensearch:
# DO NOT CHANGE the hosts value - this will be updated by the CDK
hosts:
- <SOURCE_CLUSTER_HOST>
# Uncomment the following line to disable TLS
#insecure: true
# Example configuration on how to disable authentication (default: false)
disable_authentication: true
indices:
# Indices to exclude - exclude system indices by default
exclude:
- index_name_regex: \.*
# Target cluster configuration
sink:
- opensearch:
bulk_size: 10
# DO NOT CHANGE the hosts value - this will be updated by the CDK
# But adjust the protocol (http or https) as appropriate
hosts:
- https://<TARGET_CLUSTER_HOST>
# 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")}
# Example configuration for basic auth
username: user
password: pass
#disable_authentication: true
# Additional pipeline options/optimizations
# For maximum throughput, match workers to number of vCPUs (default: 1)
workers: 1
# delay is how often the worker threads should process data (default: 3000 ms)
delay: 0
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class FetchMigrationStack extends Stack {
super(scope, id, props);

// Import required values
const targetClusterEndpoint = StringParameter.valueForStringParameter(this, `/migration/${props.stage}/${props.defaultDeployId}/osClusterEndpoint`)
const targetClusterEndpoint = StringParameter.valueFromLookup(this, `/migration/${props.stage}/${props.defaultDeployId}/osClusterEndpoint`)
Copy link
Copy Markdown
Contributor

@lewijacn lewijacn Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this makes sense. Value from lookup requires that the value be there at synthesis time. If there is anyway we can retrieve this from the Migration Console it seems preferable

const domainAccessGroupId = StringParameter.valueForStringParameter(this, `/migration/${props.stage}/${props.defaultDeployId}/osAccessSecurityGroupId`)
// This SG allows outbound access for ECR access as well as communication with other services in the cluster
const serviceConnectGroupId = StringParameter.valueForStringParameter(this, `/migration/${props.stage}/${props.defaultDeployId}/serviceConnectSecurityGroupId`)
Expand All @@ -38,8 +38,8 @@ export class FetchMigrationStack extends Stack {

// ECS Task Definition
const fetchMigrationFargateTask = new FargateTaskDefinition(this, "fetchMigrationFargateTask", {
memoryLimitMiB: 2048,
cpu: 512
memoryLimitMiB: 4096,
cpu: 1024
});

new StringParameter(this, 'SSMParameterFetchMigrationTaskDefArn', {
Expand Down