lib/terraforming/template/tf/launch_configuration.erb in terraforming-0.9.1 vs lib/terraforming/template/tf/launch_configuration.erb in terraforming-0.10.0
- old
+ new
@@ -8,10 +8,12 @@
<%- end -%>
<%- unless launch_configuration.key_name.empty? -%>
key_name = "<%= launch_configuration.key_name %>"
<%- end -%>
security_groups = <%= launch_configuration.security_groups.map { |sg| sg }.inspect %>
+<%- unless launch_configuration.associate_public_ip_address.nil? -%>
associate_public_ip_address = <%= launch_configuration.associate_public_ip_address %>
+<%- end -%>
<%- unless launch_configuration.user_data.empty? -%>
user_data = "<%= launch_configuration.user_data %>"
<%- end -%>
enable_monitoring = <%= launch_configuration.instance_monitoring.enabled %>
ebs_optimized = <%= launch_configuration.ebs_optimized %>