./lib/stacco/stack.rb in stacco-0.1.60 vs ./lib/stacco/stack.rb in stacco-0.1.61
- old
+ new
@@ -182,9 +182,16 @@
'MainDBAdminPasswordVar' => self.secrets['db_admin_password'],
'EnvironmentTypeVar' => self.config['environment'],
'UserDataEnvironmentVar' => env_lns.join
}
+ (self.config['permit_backoffice_access'] || []).each do |rule_name, (auth_type, auth_opts)|
+ case auth_type
+ when :ip_range
+ parameters["#{rule_name.capitalize}IPRange"] = auth_opts
+ end
+ end
+
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["Min#{camelized_layer_name}Var"] = scaling_groups[layer_name].to_s