Skip to content

Commit

Permalink
Merge pull request #5 from geekcell/output_zone_id
Browse files Browse the repository at this point in the history
feat: Output Zone ID of Load Balancer
  • Loading branch information
ckappen committed May 10, 2023
2 parents d28957c + b7faf44 commit 5d80f52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ preconfigured solution for high availability and scalability.
| <a name="output_dns_name"></a> [dns\_name](#output\_dns\_name) | The DNS name of the load balancer. |
| <a name="output_http_to_https_listener_arn"></a> [http\_to\_https\_listener\_arn](#output\_http\_to\_https\_listener\_arn) | ARN of the HTTP to HTTPS listener |
| <a name="output_security_group"></a> [security\_group](#output\_security\_group) | Security group ID of the Application Load Balancer |
| <a name="output_zone_id"></a> [zone\_id](#output\_zone\_id) | The canonical hosted zone ID of the load balancer (to be used in a Route 53 Alias record) |

## Providers

Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ output "security_group" {
description = "Security group ID of the Application Load Balancer"
value = try(module.sg[0].security_group_id, null)
}

output "zone_id" {
description = "The canonical hosted zone ID of the load balancer (to be used in a Route 53 Alias record)"
value = aws_lb.main.zone_id
}

0 comments on commit 5d80f52

Please sign in to comment.