Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Fix for when associate_public_ip_address is nil #250

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/terraforming/template/tf/launch_configuration.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%>
Expand Down