Skip to content

albanovito/kafka-tools

Repository files navigation

Kafka Tool

This repository provides kafka tool to interact with kafka MSK with IAM role: Documentation

Link GitHub Repository AWS

What this repo contains

src/main/java
docker/
  client.properties
  Dockerfile
README.md
create-image.sh

About dev environment

This section provides docker image with Kafka utility that can be used with MSK

About the CLI

The CLI builds a Docker container image locally. This allows you to run a local command to create a topic producer and consumer

Prerequisites

Step one: Building the Docker image

Build the Docker container image using the following command:

./create-image.sh

Note: it takes several minutes to build the Docker image locally.

Step two: Execute login on aws

aws sso login

Step three: Run docker composer file

docker-compose -f ./docker-compose.yml up

Step four: Connect to ssh on container kafka-tool

Step five: Execute a kafka command

./kafka-topics.sh --bootstrap-server $BS --command-config client.properties --create --topic kafka-tool --partitions 1

About code example

In the folder src/main/java there this class

  • Producer
  • Consumer
  • Admin that implements the example in JAVA code with MSK

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published