Commit 8c1ae1b0 authored by Daisuke Fujita's avatar Daisuke Fujita

Merge pull request #52 from dtan4/r53record-alias

Include alias count attribute
parents 3e216e5c e1dd073b
......@@ -31,7 +31,7 @@ module Terraforming
"zone_id" => zone_id,
}
# TODO(dtan4): alias
attributes["alias.#"] = "1" if record.alias_target
attributes["records.#"] = record.resource_records.length.to_s unless record.resource_records.empty?
attributes["ttl"] = record.ttl.to_s if record.ttl
attributes["weight"] = record.weight.to_s if record.weight
......
......@@ -132,6 +132,7 @@ resource "aws_route53_record" "www-fuga-net" {
"name" => "www.fuga.net",
"type" => "A",
"zone_id" => "OPQRSTUVWXYZAB",
"alias.#" => "1",
"weight" => "10",
},
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment