aws_firewall

Granular iptables rules for Amazon Web Services

Philippe Muller

pmuller

6,907 downloads

1,861 latest version

5.0 quality score

Version information

  • 0.5.0 (latest)
  • 0.4.1
  • 0.2.0
  • 0.1.10
  • 0.1.9
  • 0.1.7
  • 0.1.6
  • 0.1.5
  • 0.1.4
released Jan 30th 2020
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 6.0.0
  • CentOS
    ,
    OracleLinux
    ,
    RedHat
    ,
    Scientific

Start using this module

Documentation

pmuller/aws_firewall — version 0.5.0 Jan 30th 2020

aws_firewall

Puppet Forge Puppet Forge downloads Build Status

Table of Contents

  1. Description
  2. Usage - Configuration options and additional functionality
  3. Reference - An under-the-hood peek at what the module is doing and how
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module
  6. Changelog

Description

This module generates granular iptables rules to restrict access to Amazon Web Services.

Usage

Create an ipset that contains specific AWS IP prefixes

aws_firewall::ipset { 'ap-south-1-s3':
  regions  => ['ap-south-1'],
  services => ['S3'],
}

Create an ipset-based iptables rule

aws_firewall::rule::ipset { '200 Allow access to S3 in us-east-1':
  ipset => 'ap-south-1-s3',
}

Create an iptables rule to allow access to EC2 metadata

aws_firewall::rule::metadata { '200 Allow access to EC2 instance metadata':
  uid => 'someone',
}

Reference

See reference

Limitations

  • Only tested on RedHat-like Linux distributions
  • IPv6 prefixes are not yet supported

Development

See development

Changelog

See CHANGELOG