Project

tagenv

0.0
No commit activity in last 3 years
No release in over 3 years
ec2 instance tag apply environment variables.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.10.1
~> 10.3.2
~> 3.0
~> 0.24.1
~> 0.8

Runtime

>= 0
 Project Readme

tagenv Build Status Gem Version

ec2 instance tag apply environment variables.

Settings

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

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:

gem 'tagenv'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tagenv

Synopsis

$ 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

Information