|
| 1 | +# Terraform AWS Application Load Balancer (ALB) Outputs |
| 2 | +output "lb_id" { |
| 3 | + description = "The ID and ARN of the load balancer we created." |
| 4 | + value = module.alb.lb_id |
| 5 | +} |
| 6 | + |
| 7 | +output "lb_arn" { |
| 8 | + description = "The ID and ARN of the load balancer we created." |
| 9 | + value = module.alb.lb_arn |
| 10 | +} |
| 11 | + |
| 12 | +output "lb_dns_name" { |
| 13 | + description = "The DNS name of the load balancer." |
| 14 | + value = module.alb.lb_dns_name |
| 15 | +} |
| 16 | + |
| 17 | +output "lb_arn_suffix" { |
| 18 | + description = "ARN suffix of our load balancer - can be used with CloudWatch." |
| 19 | + value = module.alb.lb_arn_suffix |
| 20 | +} |
| 21 | + |
| 22 | +output "lb_zone_id" { |
| 23 | + description = "The zone_id of the load balancer to assist with creating DNS records." |
| 24 | + value = module.alb.lb_zone_id |
| 25 | +} |
| 26 | + |
| 27 | +output "http_tcp_listener_arns" { |
| 28 | + description = "The ARN of the TCP and HTTP load balancer listeners created." |
| 29 | + value = module.alb.http_tcp_listener_arns |
| 30 | +} |
| 31 | + |
| 32 | +output "http_tcp_listener_ids" { |
| 33 | + description = "The IDs of the TCP and HTTP load balancer listeners created." |
| 34 | + value = module.alb.http_tcp_listener_ids |
| 35 | +} |
| 36 | + |
| 37 | +output "https_listener_arns" { |
| 38 | + description = "The ARNs of the HTTPS load balancer listeners created." |
| 39 | + value = module.alb.https_listener_arns |
| 40 | +} |
| 41 | + |
| 42 | +output "https_listener_ids" { |
| 43 | + description = "The IDs of the load balancer listeners created." |
| 44 | + value = module.alb.https_listener_ids |
| 45 | +} |
| 46 | + |
| 47 | +output "target_group_arns" { |
| 48 | + description = "ARNs of the target groups. Useful for passing to your Auto Scaling group." |
| 49 | + value = module.alb.target_group_arns |
| 50 | +} |
| 51 | + |
| 52 | +output "target_group_arn_suffixes" { |
| 53 | + description = "ARN suffixes of our target groups - can be used with CloudWatch." |
| 54 | + value = module.alb.target_group_arn_suffixes |
| 55 | +} |
| 56 | + |
| 57 | +output "target_group_names" { |
| 58 | + description = "Name of the target group. Useful for passing to your CodeDeploy Deployment Group." |
| 59 | + value = module.alb.target_group_names |
| 60 | +} |
| 61 | + |
| 62 | +output "target_group_attachments" { |
| 63 | + description = "ARNs of the target group attachment IDs." |
| 64 | + value = module.alb.target_group_attachments |
| 65 | +} |
0 commit comments