<% vpcs.each do |vpc| -%> resource "aws_vpc" "<%= module_name_of(vpc) %>" { cidr_block = "<%= vpc.cidr_block %>" enable_dns_hostnames = <%= enable_dns_hostnames?(vpc) %> enable_dns_support = <%= enable_dns_support?(vpc) %> instance_tenancy = "<%= vpc.instance_tenancy %>" tags { <% vpc.tags.each do |tag| -%> "<%= tag.key %>" = "<%= tag.value %>" <% end -%> } } <% end -%>