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

Commit

Permalink
Merge pull request #250 from gotyoooo/fix_launch_configuration_associ…
Browse files Browse the repository at this point in the history
…ate_public_ip_address

Fix for when associate_public_ip_address is nil
  • Loading branch information
dtan4 authored Aug 2, 2016
2 parents c42d6a8 + 3a43a6d commit a24b9b1
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit a24b9b1

Please sign in to comment.