https://github.com/pcboy/elastip
Get your AWS elastic beanstalk active instances private IP
https://github.com/pcboy/elastip
Last synced: about 1 year ago
JSON representation
Get your AWS elastic beanstalk active instances private IP
- Host: GitHub
- URL: https://github.com/pcboy/elastip
- Owner: pcboy
- License: mit
- Created: 2017-02-07T11:41:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T03:26:36.000Z (over 7 years ago)
- Last Synced: 2025-02-12T15:17:42.470Z (over 1 year ago)
- Language: Ruby
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://travis-ci.org/pcboy/elastip)
# Elastip
Get your AWS elastic beanstalk active instances private IP
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'elastip'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install elastip
## Usage
```
$> elastip project_name production
10.0.15.12
$> elastip 'pr*ject\d+' staging
10.0.15.42
```
If you want to also list the non Healthy instances (the red ones for instance), you can add the --all option
```
$> elastip project_name production --all
10.0.15.12
10.0.15.16
```
You got the idea. You can then use it directly in an alias doing `ssh ec2-user@$(elastip project-name production)`
### Killing the inactive instances
```
$> elastip project_name production --inactive --terminate
$>
```
Careful with this one but it'll terminate all the instances marked as 'inactive' in their cname.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/pcboy/elastip. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the WTFPL license (Do what the fuck you want to public license)