You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a regression issue in the current v0.6.3 of Terraform. 0.5.3 version works fine:
resource "aws_route53_record" "service-dns" {
zone_id = "my_correct_zone_id" # correct zone ID
name = "webservice-${count.index+1}" # DNS name: webservice-[1/2/n]
type = "A"
ttl = "60"
# record == private_IP of the instance created using aws_instance resource
records = ["${element(aws_instance.webservice.*.private_ip, count.index)}"]
# number of records to create, equal to number of instances in aws_instance resource
count = "${var.instance_count}"
}
In outputs section:
output "internal_dns" {
value = "${join(",", aws_instance.webservice.*.private_ip)}"
}
output "service_hostnames" {
value = "${join(",", aws_route53_record.service-dns.*.name)}"
}
#v. 0.6.3
internal_dns = 10.151.2.123,10.151.2.132
### service_hostnames does not even show up in the output
### all other outputs before and after display correctly
v0.6.3
terraform output service_hostnames
The output variable requested could not be found in the state
file. If you recently added this to your configuration, be
sure to run `terraform apply`, since the state won't be updated
with new output variables until that command is run.
terraform output internal_dns
10.151.2.122,10.151.2.174
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
May 1, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There is a regression issue in the current v0.6.3 of Terraform. 0.5.3 version works fine:
In outputs section:
Actual terminal output:
v0.6.3
The text was updated successfully, but these errors were encountered: