Sha256: 0fd94aacecdeb4cdef79f952214dac65867d87bd3fec77ea378ac1ef4b408aae

Contents?: true

Size: 452 Bytes

Versions: 34

Compression:

Stored size: 452 Bytes

Contents

<% subnets.each do |subnet| -%>
resource "aws_subnet" "<%= module_name_of(subnet) %>" {
    vpc_id                  = "<%= subnet.vpc_id %>"
    cidr_block              = "<%= subnet.cidr_block %>"
    availability_zone       = "<%= subnet.availability_zone %>"
    map_public_ip_on_launch = <%= subnet.map_public_ip_on_launch %>

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

<% end -%>

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
terraforming-0.5.0 lib/terraforming/template/tf/subnet.erb
terraforming-0.4.0 lib/terraforming/template/tf/subnet.erb
terraforming-0.3.2 lib/terraforming/template/tf/subnet.erb
terraforming-0.3.1 lib/terraforming/template/tf/subnet.erb
terraforming-0.3.0 lib/terraforming/template/tf/subnet.erb
terraforming-0.2.0 lib/terraforming/template/tf/subnet.erb
terraforming-0.1.6 lib/terraforming/template/tf/subnet.erb
terraforming-0.1.5 lib/terraforming/template/tf/subnet.erb
terraforming-0.1.4 lib/terraforming/template/tf/subnet.erb
terraforming-0.1.3 lib/terraforming/template/tf/subnet.erb
terraforming-0.1.2 lib/terraforming/template/tf/subnet.erb
terraforming-0.1.1 lib/terraforming/template/tf/subnet.erb
terraforming-0.1.0 lib/terraforming/template/tf/subnet.erb
terraforming-0.0.5 lib/terraforming/template/tf/subnet.erb