Skip to content

oreno-tools/wafoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}

About

AWS WAF の IP Sets に登録されている IP リストを操作するツールです.

Resources

Stars

Watchers

Forks

Packages

No packages published