Coder Social home page Coder Social logo

aws-samples / aws-iot-msk-rule-cloudformation-example Goto Github PK

View Code? Open in Web Editor NEW
1.0 10.0 4.0 60 KB

CloudFormation templates to create AWS IoT Rule with Amazon MSK cluster integration.

License: MIT No Attribution

aws aws-iot-core aws-cloudformation-templates aws-msk

aws-iot-msk-rule-cloudformation-example's Introduction

Integrating AWS IoT Core rules with Amazon Managed Streaming for Apache Kafka (MSK)

This repository include sample CloudFormation templates demonstrating AWS IoT Core rule action integration with Amazon MSK.

For sake of completness, the root stack creates all required resources, such as: Amazon Virtual Private Cloud (Amazon VPC), Amazon MSK cluster, AWS IoT Core rule, AWS Secrets Manager, AWS Identity and Access Management (IAM).

To create all resources use the root.yaml template. It is possible to use each template seperatly, by inputing existing resources as parameters to the relevant template.

This example can be used as a starting point for production grade solution deployment.

Architecture diagram

Architecture

Notes

The stack does not create the Amazon MSK topic itself. You will have to create the topic using standard tools.

You will have to attach your IoT Thing Certificate an appropriate policy allowing it to publish messages to the MQTT topic used by the AWS IoT Rule.

To test this stack you can use AWS IoT MQTT test from the console, and a Kafka consumer.

MSK secret password is auto generated by Amazon Secrets Manager at secret creation. You can retrieve secret value from Secrets Manager console or using AWS CLI command:

aws secretsmanager get-secret-value --secret-id AmazonMSK_secret_[your stack ENVIRONMENT value]

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

aws-iot-msk-rule-cloudformation-example's People

Contributors

amazon-auto avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.