2017 © Pedro Peláez
 

library cloudfront-ip-alert

Display updated Amazon CloudFront IP addresses.

image

achievers/cloudfront-ip-alert

Display updated Amazon CloudFront IP addresses.

  • Thursday, February 2, 2017
  • by harriswong
  • Repository
  • 4 Watchers
  • 0 Stars
  • 4,648 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 13 % Grown

The README.md

cloudfront-ip-alert

Sends an email when Amazon CloudFront IP addresses are updated, (*1)

=======, (*2)

Basic useful feature list

  • Lightweight Library
  • Checks Amazon CloudFront IP and alert user.
  • Can easily integrate with email notification or 3rd party notification.

Description

Installation

The easiest way to install is via Composer., (*3)

{
    "require": {
        "achievers/cloudfront-ip-alert": "0.*"
    }
}

Usage

Take a look at index.php for an example. Here is a quick start:, (*4)

require_once('CloudFront/IPWhiteList.php');

use Achievers\CloudFront\IPWhiteList;

$cloudFrontIP = new IPWhiteList(); // Initialize a class
$listOfIPs = $cloudFrontIP->getLastCloudFrontFile(); //Get the latest CloudFront file
$data = $cloudFrontIP->checkIP($listOfIPs); //Return a list of changes

Config

You can pass in configuration for customization
cloudFrontType
The CloudFront file from Amazon contains IP of different services. Default is "CLOUDFRONT".
cloudFrontLastFile
The is the full file path where we will store the most recent file as. ie. '/tmp/ip-ranges-old.json'.
cloudFrontUrl
The URL to Amazon CloudFront file. Default 'https://ip-ranges.amazonaws.com/ip-ranges.json'

License

MIT License, (*5)

The Versions

02/02 2017

dev-master

9999999-dev https://github.com/Achievers/cloudfront-ip-alert

Display updated Amazon CloudFront IP addresses.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Harris Wong

02/02 2017

0.3

0.3.0.0 https://github.com/Achievers/cloudfront-ip-alert

Display updated Amazon CloudFront IP addresses.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Harris Wong

01/02 2017

0.2.1

0.2.1.0 https://github.com/Achievers/cloudfront-ip-alert

Display updated Amazon CloudFront IP addresses.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Harris Wong

01/02 2017

0.2

0.2.0.0 https://github.com/Achievers/cloudfront-ip-alert

Display updated Amazon CloudFront IP addresses.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Harris Wong

31/01 2017

0.1

0.1.0.0 https://github.com/Achievers/cloudfront-ip-alert

Display updated Amazon CloudFront IP addresses.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Harris Wong