おれん ElastiCache Snapshot
おれん ElastiCache のスナップショットを管理ツールくさ。
Installation
Add this line to your application's Gemfile:
gem 'elasticache_snapshot'
And then execute:
$ bundle
Or install it yourself as:
$ gem install elasticache_snapshot
Usage
Set AWS Credentials
cat << EOT > ~/.aws/credentials
[default]
aws_access_key_id = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
aws_secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
EOT
export AWS_REGION=ap-northeast-1 or export AWS_REGION=(your region)
If you want to run on EC2 instance that has been set appropriate IAM role set of access_key and secret_access_key is not required(AWS_REGION
required.).
Help
bundle exec bin/elasticache_snapshot
(output)
Commands:
elasticache_snapshot create SNAPSHOT_NAME # Create Snapshot SNAPSHOT_NAME
elasticache_snapshot delete SNAPSHOT_NAME # Dispose Snapshot SNAPSHOT_NAME
elasticache_snapshot help [COMMAND] # Describe available commands or one specific command
elasticache_snapshot list # Describe Snapshots
list
bundle exec bin/elasticache_snapshot list
(output)
+---------------------+-------------------------+
| SNAPSHOT Name | SNAPSHOT Create time |
+---------------------+-------------------------+
| snapshot-1420457086 | 2015-01-05 11:25:01 UTC |
| snapshot-1420457295 | 2015-01-05 11:28:31 UTC |
| snapshot-1420461070 | 2015-01-05 12:31:21 UTC |
+---------------------+-------------------------+
Contributing
- Fork it ( https://github.com/[my-github-username]/elasticache_snapshot/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request