Converts simple YAML definitions of kafka ACLs and topics into AWS CFN templates
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
File details
Details for the file aws_cfn_kafka_admin_provider-0.6.0.tar.gz
.
File metadata
- Download URL: aws_cfn_kafka_admin_provider-0.6.0.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.6 Linux/5.13.9-100.fc33.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6a55dfd322b89d19bb60eb6a505cc734bb2e6c92e602e5f8e2e5abe28a0b955 |
|
MD5 | 1227a7a33b24c88ece9e565f96c4ac13 |
|
BLAKE2b-256 | 2c1800588d96e030dc65926e8505a1d6bd23c0bb38a2c6573e08409f0d99df35 |
File details
Details for the file aws_cfn_kafka_admin_provider-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: aws_cfn_kafka_admin_provider-0.6.0-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.6 Linux/5.13.9-100.fc33.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b894d65063e61da834c56924130264f5adff528284402d2351e513f0cd3a85d5 |
|
MD5 | 0d46361a154f1a48ef3ed106cfe9ca0d |
|
BLAKE2b-256 | 8af9c1906c0701c584a1e27b5714043fa382c029c5d5e043f19d307a2d02060f |