Code
Consider a terraform module:
module "blah-asg" {
source = "asg"
asg_max_size = 1
asg_min_size = "${var.min_blah}"
...
}
My problem
How do I output variables from it?
What have I tried
output "blah-es-asg" {
value = "${asg.blah-asg.arn}"
}
Which failed with
Error getting plugins: module root: 1 error(s) occurred: * output 'blah-asg': unknown resource 'asg.blah' referenced in variable asg.blah-asg.arn
My question
How can I output module fields in Terraform?