From 3f0b7aa7d70cf4c0a25ea1819d3e0afd01ec9c91 Mon Sep 17 00:00:00 2001 From: "Gavin M. Roy" Date: Wed, 15 Jun 2016 08:31:51 -0400 Subject: [PATCH] Use the instance metadata IP instead of FQDN (#67) --- src/autocluster.app.src | 2 +- src/autocluster_aws.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autocluster.app.src b/src/autocluster.app.src index c6dae17..fdf34a0 100644 --- a/src/autocluster.app.src +++ b/src/autocluster.app.src @@ -1,7 +1,7 @@ {application, autocluster, [ {description, "RabbitMQ Automatic Clustering Plugin"}, - {vsn, "0.6.0"}, + {vsn, "0.6.1"}, {env, []}, {mod, {autocluster_app, []}}, {modules, [ diff --git a/src/autocluster_aws.erl b/src/autocluster_aws.erl index 89580e5..ff69672 100644 --- a/src/autocluster_aws.erl +++ b/src/autocluster_aws.erl @@ -19,7 +19,7 @@ -include_lib("rabbitmq_aws/include/rabbitmq_aws.hrl"). -define(INSTANCE_ID_URL, - "http://instance-data/latest/meta-data/instance-id"). + "http://169.254.169.254/latest/meta-data/instance-id"). -define(AUTOSCALING_DESCRIBE_INSTANCES, "/?Action=DescribeAutoScalingInstances&Version=2011-01-01").