Skip to content

Connections

A connection is a name for one system: a Kafka cluster with its schema registry, a Pulsar cluster, or one AWS account in one region.

File Where For
user ~/.config/kurkik/connections.yaml (or $KURKIK_CONFIG; %APPDATA%\kurkik\ on Windows) your own connections
project .kurkik/connections.yaml, found from the current folder upwards your team’s, committed with the code

New connections go to the user file unless you add --project. A name must be unique across both.

Terminal window
kurkik conn add kafka prod --bootstrap b-1:9093 --security SASL_SCRAM_SHA_512 --username svc --secret login=keychain
Terminal window
kurkik conn ls
Terminal window
kurkik conn test prod

Also: conn show, edit, rm, mv, cp. Run kurkik conn add kafka --help (or pulsar, sns, sqs) for every option. edit changes only what you pass; passing an empty value removes that setting.

version: 1
connections:
- name: staging
protocol: kafka
bootstrapServers:
- b-1.staging.example.com:9096
security: SASL_SCRAM_SHA_512
schemaRegistry:
url: https://sr.staging.example.com
auth: BASIC
username: sr-reader
secrets:
login:
username: svc-asyncapi
password: env:STAGING_PASSWORD
- name: orders
protocol: sqs
region: eu-west-1
accountId: "012345678901"
credentials:
source: PROFILE
profile: orders-dev

Paths in the file are relative to the folder that holds .kurkik/. Quote accountId, so a leading zero is kept.

Next: secrets and trust.