Sha256: 7ac38919ac7c244e0e7f040413db061604c2d300095337f37ddeb2d7de66da8f

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 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

4 entries across 4 versions & 1 rubygems

Version Path
terraforming-0.0.4 lib/terraforming/template/tf/subnet.erb
terraforming-0.0.3 lib/terraforming/template/tf/subnet.erb
terraforming-0.0.2 lib/terraforming/template/tf/subnet.erb
terraforming-0.0.1 lib/terraforming/template/tf/subnet.erb