./lib/stacco/stack.rb in stacco-0.1.57 vs ./lib/stacco/stack.rb in stacco-0.1.59

- old
+ new

@@ -186,12 +186,12 @@ scaling_groups = self.config['scale'] self.enabled_layer_names.each do |layer_name| next unless scaling_groups.has_key?(layer_name) camelized_layer_name = layer_name.split('-').map{ |w| w.capitalize.gsub(/api/i, 'API') }.join - parameters["#{camelized_layer_name}ScalingGroupMinSizeVar"] = scaling_groups[layer_name].to_s - parameters["#{camelized_layer_name}ScalingGroupMaxSizeVar"] = (scaling_groups[layer_name] + 1).to_s + parameters["Min#{camelized_layer_name}Var"] = scaling_groups[layer_name].to_s + parameters["Max#{camelized_layer_name}Var"] = (scaling_groups[layer_name] + 1).to_s end if instance_ami = self.config['base_image'] parameters['InstanceAMIVar'] = instance_ami end @@ -269,11 +269,13 @@ end def initialize_distributions! @services[:cloudfront].distributions.each do |dist| dist.update do + next unless stack_dist_cert = @aws_stack.server_certificates(domain: dist.aliases).first + dist.price_class = :"100" - dist.certificate = @aws_stack.server_certificates(domain: dist.aliases).first.id + dist.certificate = stack_dist_cert.id end end end def invalidate_distributed_objects!(dist_cname, obj_keys)