Sha256: c36fed08b0ef0d12da6b1f4af9323e854ce7c838a98cafdab4c87c316cd5eb1b

Contents?: true

Size: 755 Bytes

Versions: 1

Compression:

Stored size: 755 Bytes

Contents

require "aws-sdk-core"
require "autostacker24"
require_relative "../lib/autocanary24/client"

STACK_NAME    = 'autocanary24-example'
BASE_TEMPLATE = 'base-stack.json'
ASG_TEMPLATE  = 'asg-stack.json'

task :default do

  # 1) Create the base stack which includes at least the ELB
  base_parameters = {}
  Stacker.create_or_update_stack(STACK_NAME, BASE_TEMPLATE, base_parameters)

  # 2) Create the stack which includes the ASG
  client = AutoCanary24::Client.new({
    :keep_inactive_stack => true
  })

  parameters = {}
  client.deploy_stack(STACK_NAME, ASG_TEMPLATE, parameters)

end

task :cleanup do
  Stacker.delete_stack('autocanary24-example-B')
  Stacker.delete_stack('autocanary24-example-G')
  Stacker.delete_stack('autocanary24-example')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
autocanary24-0.1.0.pre.alpha2 examples/Rakefile