Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.67 KB

File metadata and controls

62 lines (44 loc) · 1.67 KB

MQ Broker

Key Value
Services MQ
Integrations AWS CLI
Categories Messaging

Introduction

A demo application illustrating the use of the AWS MQ API with LocalStack. The sample creates a message broker, connects to it, sends a message to a queue, and cleans up the broker.

Prerequisites

Check prerequisites

make check

Installation

make install

Start LocalStack

export LOCALSTACK_AUTH_TOKEN=<your-auth-token>
make start

Run the application

make run

The script creates an MQ broker, retrieves the broker endpoint, sends a message to the queue, and deletes the broker.

You should see output similar to:

$ make run
Creating MQ broker in LocalStack ...
Created MQ broker with id: b-7dc2ba4a-53a0-41ef-a2ad-92eac3ad879d
Describe broker to get the endpoint
Broker endpoint on http://localhost:4510
Sending message to broker
Message sentCleaning up - deleting broker
Deleted Broker b-7dc2ba4a-53a0-41ef-a2ad-92eac3ad879d

License

This code is available under the Apache 2.0 license.