Sha256: fa529e739edfa8dc686de403ba42467dc140dfb30d5e1260577f08532f5a71cd

Contents?: true

Size: 906 Bytes

Versions: 17

Compression:

Stored size: 906 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) %>"
    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

17 entries across 17 versions & 1 rubygems

Version Path
terraforming-0.6.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.5.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.4.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.3.2 lib/terraforming/template/tf/route53_record.erb
terraforming-0.3.1 lib/terraforming/template/tf/route53_record.erb
terraforming-0.3.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.2.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.1.6 lib/terraforming/template/tf/route53_record.erb
terraforming-0.1.5 lib/terraforming/template/tf/route53_record.erb
terraforming-0.1.4 lib/terraforming/template/tf/route53_record.erb
terraforming-0.1.3 lib/terraforming/template/tf/route53_record.erb
terraforming-0.1.2 lib/terraforming/template/tf/route53_record.erb
terraforming-0.1.1 lib/terraforming/template/tf/route53_record.erb
terraforming-0.1.0 lib/terraforming/template/tf/route53_record.erb
terraforming-0.0.5 lib/terraforming/template/tf/route53_record.erb
terraforming-0.0.4 lib/terraforming/template/tf/route53_record.erb
terraforming-0.0.3 lib/terraforming/template/tf/route53_record.erb