lib/terraforming/template/tf/ec2.erb in terraforming-0.11.0 vs lib/terraforming/template/tf/ec2.erb in terraforming-0.12.0
- old
+ new
@@ -13,10 +13,10 @@
subnet_id = "<%= instance.subnet_id %>"
vpc_security_group_ids = <%= instance.security_groups.map { |sg| sg.group_id }.inspect %>
<%- else -%>
security_groups = <%= instance.security_groups.map { |sg| sg.group_name }.inspect %>
<%- end -%>
- associate_public_ip_address = true
+ associate_public_ip_address = <%= associate_public_ip?(instance) %>
private_ip = "<%= instance.private_ip_address %>"
<%- if instance.source_dest_check -%>
source_dest_check = <%= instance.source_dest_check %>
<%- end -%>