https://github.com/toyama0919/tagenv
ec2 instance tag apply environment variables.
https://github.com/toyama0919/tagenv
ec2 ec2-instance environment-variables ruby
Last synced: 8 months ago
JSON representation
ec2 instance tag apply environment variables.
- Host: GitHub
- URL: https://github.com/toyama0919/tagenv
- Owner: toyama0919
- Created: 2017-03-09T08:03:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-21T02:07:59.000Z (over 8 years ago)
- Last Synced: 2024-04-26T07:45:36.390Z (about 2 years ago)
- Topics: ec2, ec2-instance, environment-variables, ruby
- Language: Ruby
- Size: 19.5 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
Awesome Lists containing this project
README
# tagenv [](http://travis-ci.org/toyama0919/tagenv) [](http://badge.fury.io/rb/tagenv)
ec2 instance tag apply environment variables.
## Settings
```sh
export AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX
export AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
export AWS_REGION=ap-northeast-1
```
* support environment variables and iam role.
## Examples
```ruby
require 'tagenv'
Tagenv.load(prefix: 'EC2TAG_')
p ENV
# {
# "EC2TAG_Group"=>"group_a",
# "EC2TAG_Roles"=>"front",
# "EC2TAG_Stages"=>"staging",
# "EC2TAG_Name"=>"app01",
# "EC2TAG_Project"=>"project_a"
# ....
# }
```
## Installation
Add this line to your application's Gemfile:
```sh
gem 'tagenv'
```
And then execute:
```sh
$ bundle
```
Or install it yourself as:
```sh
$ gem install tagenv
```
## Synopsis
```sh
$ tagenv
```
## Future
* Support provider GCP.
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new [Pull Request](../../pull/new/master)
## Information
* [Homepage](https://github.com/toyama0919/tagenv)
* [Issues](https://github.com/toyama0919/tagenv/issues)
* [Documentation](http://rubydoc.info/gems/tagenv/frames)
* [Email](mailto:toyama0919@gmail.com)