Skip to content

Commit

Permalink
Update aws_route53_record name (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetOps authored and const-bon committed Sep 19, 2017
1 parent 818336d commit 055248b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data "aws_route53_zone" "parent_by_zone_name" {
resource "aws_route53_record" "default" {
count = "${length(compact(var.aliases))}"
zone_id = "${null_resource.parent.triggers.zone_id}"
name = "${var.aliases[count.index]}"
name = "${element(compact(var.aliases), count.index)}"
type = "A"

alias {
Expand Down

0 comments on commit 055248b

Please sign in to comment.