LocalStack supports a basic version of Managed Streaming for Kafka (MSK) for testing. This allows you to spin up Kafka clusters on the local machine, create topics for exchanging messages, and define event source mappings that trigger Lambda functions when messages are received on a certain topic.
- A valid LocalStack for AWS license. Your license provides a
LOCALSTACK_AUTH_TOKEN. - Docker
localstackCLIawslocalCLI- Terraform
makeandjq
export LOCALSTACK_AUTH_TOKEN=<your-auth-token>
make start
make readyTo run the example, start LocalStack, and then run the following commands:
terraform init
terraform plan
terraform apply --auto-approve