Sha256: 789b55d46d172f041272b3fb91390f357c73e5b36ee871776ba02dad9c7948e8
Contents?: true
Size: 892 Bytes
Versions: 7
Compression:
Stored size: 892 Bytes
Contents
module LonoCfn class Create < Base # save_stack is the interface method def save_stack(params) create_stack(params) end # aws cloudformation create-stack --stack-name prod-hi-123456789 --parameters file://output/params/prod-hi-123456789.json --template-body file://output/prod-hi.json def create_stack(params) if stack_exists? puts "Cannot create a stack because the #{@stack_name} already exists." return end template_body = IO.read(@template_path) message = "#{@stack_name} stack creating." if @options[:noop] message = "NOOP #{message}" else cfn.create_stack( stack_name: @stack_name, template_body: template_body, parameters: params#, # capabilities: ["CAPABILITY_IAM"] ) end puts message unless @options[:mute] end end end
Version data entries
7 entries across 7 versions & 1 rubygems