Hi, I do a bit of TF (0.12) + AWS. I have created a few modules: VPC, Subnets, IGW, etc. Each module outputs.tf some variables, I use S3 backend and I can access exported variables from different modules. All smooth and easy but when I create application load balancer (aws_lb) I can NOT make terraform to output any variable. My output.tf (root module dir) looks like this:
output "alb_id" {
value = aws_lb.alb.id
}
output "alb-security-group_id" {
value = aws_security_group.alb-security-group.id
}
output "alb-target-group_arn" {
value = aws_lb_target_group.alb-target-group.arn
}
The ALB, security group and target group gets created, I can see it in the console but the output is empty, no errors during terraform apply. Why?