Skip to content

Commit

Permalink
Fix target proxy not needing kafka param
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Kurait <akurait@amazon.com>
  • Loading branch information
AndreKurait committed Oct 11, 2024
1 parent 4777117 commit 9dd3406
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ export class CaptureProxyStack extends MigrationServiceCore {

const servicePolicies = props.streamingSourceType === StreamingSourceType.AWS_MSK ? createMSKProducerIAMPolicies(this, this.partition, this.region, this.account, props.stage, props.defaultDeployId) : []

const brokerEndpoints = getMigrationStringParameterValue(this, {
...props,
parameter: MigrationSSMParameter.KAFKA_BROKERS,
});

const destinationEndpoint = getDestinationEndpoint(this, props.destinationConfig, props);

let command = "/runJavaWithClasspath.sh org.opensearch.migrations.trafficcapture.proxyserver.CaptureProxy"
Expand All @@ -129,6 +124,10 @@ export class CaptureProxyStack extends MigrationServiceCore {
command = appendArgIfNotInExtraArgs(command, extraArgsDict, "--listenPort", "9200")
command = appendArgIfNotInExtraArgs(command, extraArgsDict, "--sslConfigFile", "/usr/share/elasticsearch/config/proxy_tls.yml")
if (props.streamingSourceType !== StreamingSourceType.DISABLED) {
const brokerEndpoints = getMigrationStringParameterValue(this, {
...props,
parameter: MigrationSSMParameter.KAFKA_BROKERS,
});
command = appendArgIfNotInExtraArgs(command, extraArgsDict, "--kafkaConnection", brokerEndpoints)
}
if (props.streamingSourceType === StreamingSourceType.AWS_MSK) {
Expand Down

0 comments on commit 9dd3406

Please sign in to comment.