This repository provides kafka tool to interact with kafka MSK with IAM role: Documentation
src/main/java
docker/
client.properties
Dockerfile
README.md
create-image.sh
This section provides docker image with Kafka utility that can be used with MSK
The CLI builds a Docker container image locally. This allows you to run a local command to create a topic producer and consumer
- macOS: Install Docker Desktop.
- Linux/Ubuntu: Install Docker Compose and Install Docker Engine.
- Windows: Windows Subsystem for Linux (WSL) to run the bash based command
mwaa-local-env
. Please follow Windows Subsystem for Linux Installation (WSL) and Using Docker in WSL 2, to get started.
Build the Docker container image using the following command:
./create-image.sh
Note: it takes several minutes to build the Docker image locally.
aws sso login
docker-compose -f ./docker-compose.yml up
./kafka-topics.sh --bootstrap-server $BS --command-config client.properties --create --topic kafka-tool --partitions 1
In the folder src/main/java there this class
- Producer
- Consumer
- Admin that implements the example in JAVA code with MSK