Commit e64c7a5e authored by sakazuki's avatar sakazuki

adjust indent

parent f7f6cca7
<% eips.each do |addr| -%>
resource "aws_eip" "<%= addr.allocation_id %>" {
<% if addr.instance_id -%>
instance = "<%= addr.instance_id %>"
instance = "<%= addr.instance_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) %>
vpc = <%= is_vpc?(addr) %>
<% end -%>
}
......
......@@ -44,13 +44,13 @@ module Terraforming
it "should generate tf" do
expect(described_class.tf(client: client)).to eq <<-EOS
resource "aws_eip" "eipalloc-87654321" {
instance = "i-12345678"
vpc = true
instance = "i-12345678"
vpc = true
}
resource "aws_eip" "eipalloc-76543210" {
network_interface_id = "eni-23456789"
vpc = true
vpc = true
}
resource "aws_eip" "eipalloc-33333333" {
......
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