Skip to content

A simple Ruby library that reads UserData on EC2 with graceful fallback when not running on EC2

Notifications You must be signed in to change notification settings

cmer/ec2_userdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easily reads from EC2 user data and falls back to a local config file if the code is not running on the EC2 cloud.

This library expects your EC2 user data to be in JSON format. From an EC2 machine, you can then do in Ruby:

EC2::UserData["my-key"]

If your code is not running on EC2, for example, during testing/development, ec2_userdata will try to read ./config/ec2_userdata.yml and return values found in that file instead.

Author: Carl Mercier
Collaborators: Camilo Lopez

About

A simple Ruby library that reads UserData on EC2 with graceful fallback when not running on EC2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages