Skip to content
Read Cloud Formation Templates - Ruby Gem
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
.rvmrc
.travis.yml
CHANGELOG
Gemfile
LICENSE.txt
README.md
Rakefile
cloud_formation_template.gemspec

README.md

Build Status

CloudFormationTemplate

Ruby Gem to Read AWS Cloud Formation Template Files

Installation

Add this line to your application's Gemfile:

gem 'cloud_formation_template'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cloud_formation_template

Usage

Require cloud_formation_template

require 'cloud_formation_template'

Load the template file

template = CloudFormationTemplate::Template.new :file => 'template.json'

List template resources

template.resources
=> ["Resource1", "Resource2"]

List template parameters

template.parameters
=> ["Parameter1", "Parameter2"]

List template outputs

template.outputs
=> ["Output1", "Output2"]

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
Something went wrong with that request. Please try again.