Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
Merge pull request #26 from carnivalmobile/master
Browse files Browse the repository at this point in the history
Update config examples for 0.7.0
  • Loading branch information
michaelklishin authored May 18, 2017
2 parents 4de9588 + bf96484 commit 60f1c4a
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,32 +256,31 @@ The following configuration example enables the autoscaling based cluster discov

```erlang
[
{rabbit, [
{log_levels, [{autocluster, info}, {connection, info}]}
]},
{autocluster, [
{backend, aws},
{aws_autoscaling, true},
{aws_ec2_region, "us-west-2"}
]}
].
{autocluster, [
{autocluster_log_level, debug},
{backend, aws},
{aws_autoscaling, true},
{aws_ec2_region, "us-west-2"}
]}
].
```

For non-autoscaling group based clusters, the following configuration demonstrates how to limit EC2 instances in the cluster to nodes with the tags ``region=us-west-2`` and ``service=rabbitmq``. It also specifies the AWS access key and AWS secret key.

```erlang
[
{rabbit, [
{log_levels, [{autocluster, info}, {connection, info}]}
]},
{autocluster, [
{backend, aws},
{aws_ec2_tags, [{"region", "us-west-2"}, {"service", "rabbitmq"}]},
{aws_ec2_region, "us-east-1"},
{aws_access_key, "AKIDEXAMPLE"},
{aws_secret_key, "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY"}
]}
].
{autocluster, [
{autocluster_log_level, debug},
{backend, aws},
{aws_ec2_tags, [
{"region", "us-west-2"},
{"service", "rabbitmq"}
]},
{aws_ec2_region, "us-east-1"},
{aws_access_key, "AKIDEXAMPLE"},
{aws_secret_key, "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY"}
]}
].
```

When using environment variables, the tags must be provided in JSON format:
Expand Down

0 comments on commit 60f1c4a

Please sign in to comment.