Creating a cluster with two EC2 instances

In this recipe we are going to create a RabbitMQ cluster on Amazon AWS. We will create the cluster inside a VPC (http://aws.amazon.com/vpc/). A VPC is a private network on the cloud, protected from the outside network, so we don't need to configure any firewall.

The schema we are going to create contains one VPC with the following two subnets:

  • A public subnet accessible from the Internet
  • A private subnet that contains two machines configured as a RabbitMQ cluster
    • The subnets are shown in the following diagram:
Creating a cluster with two EC2 instances

Getting ready

You need an AWS account.

How to do it…

In order to create the schema, AWS provides a ready ...

Get RabbitMQ Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.