Project

wafoo

0.0
No commit activity in last 3 years
No release in over 3 years
Small tool to manipulate AWS WAF IPSets.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

wafoo Build Status Gem Version

これなに

  • AWS WAF の IP Set に登録されている IP リストを操作するツールです
  • ツッコミどころが満載です

Install

Add this line to your application's Gemfile:

gem 'wafoo'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wafoo

準備

とりあえずは, direnv と組み合わせて利用することを想定しており, AWS のクレデンシャル情報は .envrc に記載して下さい.

export AWS_PROFILE=your-profile
export AWS_REGION=ap-northeast-1

Getting Started

Step 1: Listing IPSets

$ bundle exec wafoo list

Step 2: Export IPSet details

$ bundle exec wafoo export --ip-set-id=${IPSet ID}

The IP list is exported to the current directory. (The file name is IPSet ID.)

Step 3: Modify IPSet details

$ vim ${IPSet ID}

Step 4: Check IP list

Check the IP list before applying.

$ bundle exec wafoo apply --ip-set-id=${IPSet ID} --dry-run

Step 5: Apply IP list

$ bundle exec wafoo apply --ip-set-id=${IPSet ID}