Define all your topics and render CFN templates to create/modify Kafka topics / acls / schemas
Project description
Tool / Lib to transform a simply defined set of kafka topics and transforms the definition into an AWS CloudFormation template that uses either EWS::Kafka::Topic or Custom::KafkaTopic (via AWS Lambda deployed in your account) to create/updated/delete your Kafka topics.
Installation
python3 -m pip install aws_cfn_kafka_admin_provider
Usage
As CLI
aws-cfn-kafka-admin-provider --help
usage: aws-cfn-kafka-admin-provider [-h] -f FILE_PATH [-o OUTPUT_FILE] [--format {json,yaml}] [_ ...]
positional arguments:
_
optional arguments:
-h, --help show this help message and exit
-f FILE_PATH, --file-path FILE_PATH
Path to the kafka definition file
-o OUTPUT_FILE, --output-file OUTPUT_FILE
Path to file output
--format {json,yaml} Template format
As lib
from aws_cfn_kafka_admin_provider.aws_cfn_kafka_admin_provider import KafkaStack
stack = KafkaStack("/path/to/input/file.yaml")
stack.render_topics()
Render models
# Through makefile
make data-model
# Via CLI with
datamodel-codegen --input-file-type jsonschema \
--input aws-cfn-kafka-admin-provider-schema.json \
--output aws_cfn_kafka_admin_provider/model.py
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aws_cfn_kafka_admin_provider-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92c626def49f17fd62323a66a6c0add64931e9d0c5817eee42fef1a82de8e7b6 |
|
MD5 | 2209b033b98687f62a6f536d99293dee |
|
BLAKE2b-256 | 3dfb64f03746182db4b0133b883eed8bead52ca366e54fad1e93249df55f56b4 |
Close
Hashes for aws_cfn_kafka_admin_provider-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 694bb993d25b7bd32227916605209406fda2e8c40d8570afd81689448656e190 |
|
MD5 | 7e5ddcc7a8ff8211b75a4272f7ddcd9b |
|
BLAKE2b-256 | d74bf294c47e5014d18837c99dde74da0adbbc92e0960220a5fd1481ae1dfe3b |