Sha256: 0d4a349bbf470fa635fd58c534e418ff1b3daf75ff505e83b278032edbcee2e1

Contents?: true

Size: 458 Bytes

Versions: 8

Compression:

Stored size: 458 Bytes

Contents

<% hosted_zones.each do |hosted_zone| -%>
resource "aws_route53_zone" "<%= module_name_of(hosted_zone) %>" {
    name       = "<%= name_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

8 entries across 8 versions & 1 rubygems

Version Path
terraforming-0.6.1 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.6.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.5.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.4.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.3.2 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.3.1 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.3.0 lib/terraforming/template/tf/route53_zone.erb
terraforming-0.2.0 lib/terraforming/template/tf/route53_zone.erb