lib/cfer.rb
# Creates or updates a CloudFormation stack
# @param stack_name [String] The name of the stack to update
# @param options [Hash]
Creates or updates a CloudFormation stack
Creates or updates a CloudFormation stack
def generate!(tmpl, options = {})
      config(options)
      cfn = options[:aws_options] || {}
      cfn_stack = options[:cfer_client] || Cfer::Cfn::Client.new(cfn)
      raise Cfer::Util::CferError, "No such template file: #{tmpl}" unless File.exist?(tmpl) || options[:cfer_stack]
      stack = options[:cfer_stack] || Cfer::stack_from_file(tmpl,
        options.merge(client: cfn_stack, parameters: generate_final_parameters(options))).to_h
      puts render_json(stack, options)
    end
def generate! ( tmpl , options = { } ) config ( options ) cfn = options [ :aws_options ] || { } cfn_stack = options [ :cfer_client ] || Cfer :: Cfn :: Client . new ( cfn ) raise Cfer :: Util :: CferError , "No such template file: #{tmpl}" unless File . exist? ( tmpl ) || options [ :cfer_stack ] stack = options [ :cfer_stack ] || Cfer :: stack_from_file ( tmpl , options . merge ( client : cfn_stack , parameters : generate_final_parameters ( options ) ) ) . to_h puts render_json ( stack , options ) end
Creates or updates a CloudFormation stack
Creates or updates a CloudFormation stack
tmpl
<not_specific>
options
<not_specific>
stack_name
<not_specific>
The name of the stack to update
The name of the stack to update
<not_specific>
None