GitHub - mazyu36/amazonmq_sample
Skip to content

mazyu36/amazonmq_sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Amazon MQ (MQTT) Sample (AWS CDK and Python Paho MQTT)

The code sample demonstrates the creation of an Amazon MQ broker using AWS CDK and provides a client sample for MQTT communication in Python.

Architecture

architecture

AWS CDK

Create a multi-AZ configuration for VPC and an Active/Standby configuration for Amazon MQ Broker.

  • cdk/lib/constrcuts/network.ts: VPC, Subnet, Security Group
  • cdk/lib/constrcuts/mqttBroker.ts: Amazon MQ Broker

Python

Paho MQTT clients for publishing and subscribing.

  • python/mqtt_helper.py: MQTT client helper class.
  • python/publisher.py: MQTT publisher.
  • python/subscriber.py: MQTT subscriber.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published