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
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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6df8a2a69bfa065e288e9e1c2c3b5bf608a214529f73238cdb75251b39af91ce |
|
MD5 | df7b3594501a3bb592491a442c5a7eb4 |
|
BLAKE2b-256 | f110914e3b535270520441082d39a98b0b81589a698cb051775a20db563f0c25 |
Close
Hashes for aws_cfn_kafka_admin_provider-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 620268fc681b41cff050484d782465d1c6ff6fed57e7971d3856b0c3f62f420a |
|
MD5 | d323a90fc4e01ee5c744df5a9487e8f1 |
|
BLAKE2b-256 | 667b553de6bb89e077fdd78fa1e038179a07f123dd8a24eb2037206939b89d47 |