Resource Agent for AWS EC2 EIP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information. Update May 10, 2014
eip Tweak. May 14, 2014


Resource Agent for AWS EC2 EIP for Pacemaker

This resource agent script is intended for use with Amazon EC2 instances running Linux operating systems and Pacemaker.

The scripts have been tested on the following Amazon Machine Images (AMIs) version:

  • Red Hat Enterprise Linux 6.5

The scripts have been tested on the following Pacemaker version:

  • Pacemaker 1.0.13-1.2


This script requires AWS Command Line Interface.

Install AWS Command Line Interface

If pip is not installed, install pip with following commands:


To install awscli, use pip:

pip install awscli

Getting Started

Download "eip" or clone repository:

git clone
cd aws-eip-resource-agent

Install eip resource agent:

mv eip /usr/lib/ocf/resource.d/heartbeat/
chown root:root /usr/lib/ocf/resource.d/heartbeat/eip 
chmod 0755 /usr/lib/ocf/resource.d/heartbeat/eip

After setting up pacemaker, configure crm setting to make eip resource agent ready. Here's an example setting:

property \
    no-quorum-policy="ignore" \
    stonith-enabled="false" \

primitive eip ocf:heartbeat:eip \
    params \
        elastic_ip="" \
    op start   timeout="60s" interval="0s"  on-fail="stop" \
    op monitor timeout="60s" interval="10s" on-fail="restart" \
    op stop    timeout="60s" interval="0s"  on-fail="block"


Name Description
elastic_ip The Elastic IP address.