./lib/stacco/stack.rb in stacco-0.1.36 vs ./lib/stacco/stack.rb in stacco-0.1.37
- old
+ new
@@ -166,16 +166,19 @@
"EOF",
"source /etc/environment.local"
].flatten.map{ |ln| ln + "\n" }
parameters = {
- 'DockerLibrarySnapshotVar' => self.config['docker_library_snapshot'],
'IAMKeypairNameVar' => self.iam_keypair_name,
'DBAdminUsernameVar' => self.secrets['db_admin_username'],
'DBAdminPasswordVar' => self.secrets['db_admin_password'],
'EnvironmentTypeVar' => self.config['environment'],
'UserDataEnvironmentVar' => env_lns.join
}
+
+ if instance_ami = self.config['base_image']
+ parameters['InstanceAMIVar'] = instance_ami
+ end
Stacco::Resources::RoleScripts.each do |role_name, role_script|
parameters["#{role_name}RoleScriptVar"] = role_script
end