Forge Home

aws_firewall

Granular iptables rules for Amazon Web Services

7,505 downloads

2,377 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
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'pmuller-aws_firewall', '0.5.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add pmuller-aws_firewall
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install pmuller-aws_firewall --version 0.5.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

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