- AWS WAF の IP Set に登録されている IP リストを操作するツールです
- ツッコミどころが満載です
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
$ bundle exec wafoo list
$ bundle exec wafoo export --ip-set-id=${IPSet ID}
The IP list is exported to the current directory. (The file name is IPSet ID.)
$ vim ${IPSet ID}
Check the IP list before applying.
$ bundle exec wafoo apply --ip-set-id=${IPSet ID} --dry-run
$ bundle exec wafoo apply --ip-set-id=${IPSet ID}