Module: CloudFormula

Defined in:
lib/cloudformula.rb,
lib/cloudformula/cli.rb,
lib/cloudformula/version.rb,
lib/cloudformula/json_erb.rb,
lib/cloudformula/template.rb,
lib/cloudformula/validator.rb,
lib/cloudformula/cloud_formation.rb

Defined Under Namespace

Classes: CLI, CloudFormation, JsonErb, Template, Validator

Constant Summary collapse

VERSION =
'1.1.3'

Class Method Summary collapse

Class Method Details

.create_stack(region, stack_name, template, override_options = {}, parameters = {}, aws_access_key_id = nil, aws_secret_key = nil) ⇒ Object

Creates a new AWS CloudFormation stack


13
14
15
# File 'lib/cloudformula.rb', line 13

def create_stack(region, stack_name, template, override_options = {}, parameters = {}, aws_access_key_id = nil, aws_secret_key = nil)
  CloudFormation.create_stack(region, stack_name, template, override_options, parameters, aws_access_key_id, aws_secret_key)
end

.template(source = '', parameters = {}) ⇒ Object

Creates a new CloudFormula::Template object.


7
8
9
# File 'lib/cloudformula.rb', line 7

def template(source = '', parameters = {})
  Template.new(source, parameters)
end

.update_stack(region, stack_name, template, parameters = {}, aws_access_key_id = nil, aws_secret_key = nil) ⇒ Object

Updates an AWS CloudFormation stack


19
20
21
# File 'lib/cloudformula.rb', line 19

def update_stack(region, stack_name, template, parameters = {}, aws_access_key_id = nil, aws_secret_key = nil)
  CloudFormation.update_stack(region, stack_name, template, parameters, aws_access_key_id, aws_secret_key)
end