Skip to content

Commit

Permalink
Add client ids
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeemster committed Oct 4, 2023
1 parent ffb4eac commit 514923e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/config.hocon.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"topicName": "${enriched_topic_name}"
"bootstrapServers": "${kafka_brokers}"
"consumerConf": {
"client.id": $${CONSUMER_CLIENT_ID},
"security.protocol": "SASL_SSL",
"sasl.mechanism": "PLAIN",
"sasl.jaas.config": "org.apache.kafka.common.security.plain.PlainLoginModule required username=\"${enriched_topic_kafka_username}\" password=\"${enriched_topic_kafka_password}\";"
Expand All @@ -19,6 +20,7 @@
"topicName": "${bad_topic_name}"
"bootstrapServers": "${kafka_brokers}"
"producerConf": {
"client.id": $${PRODUCER_BAD_CLIENT_ID},
"security.protocol": "SASL_SSL",
"sasl.mechanism": "PLAIN",
"sasl.jaas.config": "org.apache.kafka.common.security.plain.PlainLoginModule required username=\"${bad_topic_kafka_username}\" password=\"${bad_topic_kafka_password}\";"
Expand Down
2 changes: 2 additions & 0 deletions templates/user-data.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ sudo docker run \
--env AZURE_CLIENT_SECRET=${client_secret} \
--env JDK_JAVA_OPTIONS='${java_opts}' \
--env INSTANCE_ID=$(get_instance_id) \
--env CONSUMER_CLIENT_ID="$${HOSTNAME}" \
--env PRODUCER_BAD_CLIENT_ID="$${HOSTNAME}-bad" \
snowplow/lake-loader-azure:${version} \
--iglu-config /snowplow/config/iglu_config.json \
--config /snowplow/config/config.hocon
Expand Down

0 comments on commit 514923e

Please sign in to comment.