Sha256: 7f8167e8e46b1ec66053def175d51399db34aba633ffd755a4ffc66398bc403d

Contents?: true

Size: 852 Bytes

Versions: 7

Compression:

Stored size: 852 Bytes

Contents

template "prod-api-app.json" do
  env,app,role = name.sub('.json','').split('-')
  source "app.json.erb"
  variables(
    :env => env,
    :app => app,
    :role => role,
    :ami => "ami-123",
    :instance_type => "m1.small",
    :port => "80",
    :high_threshold => "15",
    :high_periods => "4",
    :low_threshold => "5",
    :low_periods => "10",
    :max_size => "24",
    :min_size => "6",
    :down_adjustment => "-3",
    :up_adjustment => "3",
    :ssl_cert => "arn:aws:iam::12345:server-certificate/wildcard"
  )
end

template "prod-api-redis.json" do
  env,app,role = name.sub('.json','').split('-')
  source "db.json.erb"
  variables(
    :env => env,
    :app => app,
    :role => role,
    :ami => "ami-456",
    :instance_type => "m1.small",
    :port => "80",
    :volume_size => "20",
    :availability_zone => "us-east-1e"
  )
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lono-0.3.3 lib/starter_project/config/lono/api.rb
lono-0.3.2 lib/starter_project/config/lono/api.rb
lono-0.3.1 lib/starter_project/config/lono/api.rb
lono-0.3.0 lib/starter_project/config/lono/api.rb
lono-0.2.4 lib/starter_project/config/lono/api.rb
lono-0.2.3 lib/starter_project/config/lono/api.rb
lono-0.2.2 lib/starter_project/config/lono/api.rb