Sha256: 97d50d2598857888b7809beaa15559fd61b51349c2e52a275455c958c32f14cb

Contents?: true

Size: 924 Bytes

Versions: 10

Compression:

Stored size: 924 Bytes

Contents

<% records.each do |r| -%>
  <%- record, zone_id = r[:record], r[:zone_id] -%>
resource "aws_route53_record" "<%= module_name_of(record) %>" {
    zone_id = "<%= zone_id %>"
    name    = "<%= name_of(record.name.sub(/\\052/, '*')) %>"
    type    = "<%= record.type %>"
<%- unless record.resource_records.empty? -%>
    records = <%= record.resource_records.map(&:value).to_s %>
<%- end -%>
<%- if record.ttl -%>
    ttl     = "<%= record.ttl %>"
<%- end -%>
<%- if record.weight -%>
    weight  = <%= record.weight %>
<%- end -%>
<%- if record.set_identifier -%>
    set_identifier = "<%= record.set_identifier %>"
<%- end -%>

    <%- if record.alias_target -%>
    alias {
        name    = "<%= name_of(record.alias_target.dns_name)
 %>"
        zone_id = "<%= record.alias_target.hosted_zone_id %>"
        evaluate_target_health = <%= record.alias_target.evaluate_target_health %>
    }
    <%- end -%>
}

<% end -%>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
terraforming-0.13.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.12.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.11.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.10.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.9.1 lib/terraforming/template/tf/route53_record.erb
terraforming-0.9.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.8.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.7.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.6.2 lib/terraforming/template/tf/route53_record.erb
terraforming-0.6.1 lib/terraforming/template/tf/route53_record.erb