Skip to content
Resource Agent for AWS EC2 EIP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


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.
You can’t perform that action at this time.