Sha256: 2e5d4c887ec75e8f3fca0c3a582a175edc20f61e364d1e73f2bce8cacd0de54f

Contents?: true

Size: 960 Bytes

Versions: 18

Compression:

Stored size: 960 Bytes

Contents

<% route_tables.each do |route_table| -%>
resource "aws_route_table" "<%= module_name_of(route_table) %>" {
    vpc_id     = "<%= route_table.vpc_id %>"

<% routes_of(route_table).each do |route| -%>
    route {
        cidr_block = "<%= route.destination_cidr_block %>"
<% if route.gateway_id -%>
        gateway_id = "<%= route.gateway_id %>"
<% end -%>
<% if route.instance_id -%>
        instance_id = "<%= route.instance_id %>"
<% end -%>
<% if route.vpc_peering_connection_id -%>
        vpc_peering_connection_id = "<%= route.vpc_peering_connection_id %>"
<% end -%>
<% if route.network_interface_id -%>
        network_interface_id = "<%= route.network_interface_id %>"
<% end -%>
    }

<% end -%>
<% if route_table.propagating_vgws.any? -%>
    propagating_vgws = <%= propagaving_vgws_of(route_table).inspect %>

<% end -%>
    tags {
<% route_table.tags.each do |tag| -%>
        "<%= tag.key %>" = "<%= tag.value %>"
<% end -%>
    }
}

<% end -%>

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
terraforming-0.18.0 lib/terraforming/template/tf/route_table.erb
terraforming-0.17.0 lib/terraforming/template/tf/route_table.erb
terraforming-0.16.0 lib/terraforming/template/tf/route_table.erb
terraforming-0.15.0 lib/terraforming/template/tf/route_table.erb
aws-insight-0.14.1 lib/terraforming/template/tf/route_table.erb
aws-insight-0.14.0 lib/terraforming/template/tf/route_table.erb
terraforming-0.14.0 lib/terraforming/template/tf/route_table.erb
terraforming-0.13.2 lib/terraforming/template/tf/route_table.erb
terraforming-0.13.1 lib/terraforming/template/tf/route_table.erb
terraforming-0.13.0 lib/terraforming/template/tf/route_table.erb
terraforming-0.12.0 lib/terraforming/template/tf/route_table.erb
terraforming-0.11.0 lib/terraforming/template/tf/route_table.erb
terraforming-0.10.0 lib/terraforming/template/tf/route_table.erb
terraforming-0.9.1 lib/terraforming/template/tf/route_table.erb
terraforming-0.9.0 lib/terraforming/template/tf/route_table.erb
terraforming-0.8.0 lib/terraforming/template/tf/route_table.erb
terraforming-0.7.0 lib/terraforming/template/tf/route_table.erb
terraforming-0.6.2 lib/terraforming/template/tf/route_table.erb