Sha256: ba11045ab94affb74e2aa701f3d5870f34508e3b409c3277f8b00073a9c40421
Contents?: true
Size: 904 Bytes
Versions: 5
Compression:
Stored size: 904 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?(@stack_name) puts "Cannot create '#{@stack_name}' stack because it already exists." return end template_body = IO.read(@template_path) message = "Creating #{@stack_name} stack." 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
5 entries across 5 versions & 1 rubygems