Skip to main content

Custom Resources for AWS CloudFormation representing Kafka assets management

Project description

Lib to represent kafka topic that can then be used with Troposphere

How to use

Install

pip install aws_custom_ews_kafka_topic

Deploy via Custom resource (self-managed Lambda)

from aws_custom_ews_kafka_topic.custom import KafkaTopic

topic = KafkaTopic(
  ServiceToken=Ref(FunctionArn),
  Name="new-kafka-topic",
  PartitionsCount=6
)

Deploy via Private Registry resource type

from aws_custom_ews_kafka_topic.resource import KafkaTopic

topic = KafkaTopic(
  Name="new-kafka-topic",
  PartitionsCount=6
)

Example from CLI

>>> from troposphere import Template
>>> from aws_custom_ews_kafka_topic.resource import KafkaTopic
>>> t = KafkaTopic("newtopic", Name="toto", PartitionsCount=6, BootstrapServers="toto.net")
>>> c = Template()
>>> c.add_resource(t)
>>> print(c.to_yaml())
Resources:
  newtopic:
    Properties:
      BootstrapServers: toto.net
      Name: toto
      PartitionsCount: 6
    Type: EWS::Kafka::Topic

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_custom_ews_kafka_resources-0.2.0.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page