Sha256: 517b055c93883017e3fd5b1572376d799810d8448d8b1fd93514ef55ac1cd209

Contents?: true

Size: 508 Bytes

Versions: 18

Compression:

Stored size: 508 Bytes

Contents

<% hosted_zones.each do |hosted_zone| -%>
resource "aws_route53_zone" "<%= module_name_of(hosted_zone) %>" {
    name       = "<%= name_of(hosted_zone) %>"
    comment    = "<%= comment_of(hosted_zone) %>"
<%- if private_hosted_zone?(hosted_zone) -%>
  <%- vpc = vpc_of(hosted_zone) -%>
    vpc_id     = "<%= vpc.vpc_id %>"
    vpc_region = "<%= vpc.vpc_region %>"
<%- end -%>

    tags {
<% tags_of(hosted_zone).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/route53_zone.erb
terraforming-0.17.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.16.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.15.0 lib/terraforming/template/tf/route53_zone.erb
aws-insight-0.14.1 lib/terraforming/template/tf/route53_zone.erb
aws-insight-0.14.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.14.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.13.2 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.13.1 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.13.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.12.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.11.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.10.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.9.1 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.9.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.8.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.7.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.6.2 lib/terraforming/template/tf/route53_zone.erb