Commit 821bca2b authored by sakazuki's avatar sakazuki

fix according to dtan4's comments

parent d9f1c506
......@@ -29,7 +29,7 @@ module Terraforming
"network_interface" => addr.network_interface_id,
"private_ip" => addr.private_ip_address,
"public_ip" => addr.public_ip,
"vpc" => is_vpc?(addr),
"vpc" => is_vpc?(addr).to_s,
}
attributes.delete_if{|k, v| v.nil?}
resources["aws_eip.#{addr.allocation_id}"] = {
......
......@@ -5,9 +5,7 @@ resource "aws_eip" "<%= addr.allocation_id %>" {
<% elsif addr.network_interface_id -%>
network_interface_id = "<%= addr.network_interface_id %>"
<% end -%>
<% if addr.instance_id || addr.network_interface_id -%>
vpc = <%= is_vpc?(addr) %>
<% end -%>
}
<% end -%>
......@@ -54,6 +54,7 @@ resource "aws_eip" "eipalloc-76543210" {
}
resource "aws_eip" "eipalloc-33333333" {
vpc = true
}
EOS
......@@ -75,8 +76,7 @@ resource "aws_eip" "eipalloc-33333333" {
"network_interface" => "eni-12345678",
"private_ip" => "1.1.1.1",
"public_ip" => "12.34.56.78",
"vpc" => true
"vpc" => "true"
}
}
},
......@@ -91,7 +91,7 @@ resource "aws_eip" "eipalloc-33333333" {
"network_interface" => "eni-23456789",
"private_ip" => "9.9.9.9",
"public_ip" => "2.2.2.2",
"vpc" => true
"vpc" => "true"
}
}
},
......@@ -103,7 +103,7 @@ resource "aws_eip" "eipalloc-33333333" {
"domain" => "vpc",
"id" => "eipalloc-33333333",
"public_ip" => "3.3.3.3",
"vpc" => true,
"vpc" => "true"
}
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment