diff --git a/lib/terraforming/template/tf/launch_configuration.erb b/lib/terraforming/template/tf/launch_configuration.erb index 1dec311c..f8d4af85 100644 --- a/lib/terraforming/template/tf/launch_configuration.erb +++ b/lib/terraforming/template/tf/launch_configuration.erb @@ -10,7 +10,9 @@ resource "aws_launch_configuration" "<%= module_name_of(launch_configuration) %> 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 -%>