Skip to content

Commit

Permalink
Output WireGuard CIDR
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmccarthydev committed Jan 20, 2025
1 parent 64efce5 commit e494df1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion terraform-aws-wireguard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ resource "aws_route" "wireguard_instance" {
for_each = toset(local.route_table_ids)
route_table_id = each.value
destination_cidr_block = module.wireguard.wireguard_interface_address
destination_cidr_block = module.wireguard.wireguard_cidr
network_interface_id = module.wireguard.aws_network_interface.id
}
```
Expand Down
6 changes: 3 additions & 3 deletions terraform-aws-wireguard/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ output "autoscaling_group" {
description = "Autoscaling group of NAT instance"
}

output "wireguard_interface_address" {
value = var.wireguard_interface_address
description = "WireGuard interface address"
output "wireguard_cidr" {
value = cidrsubnet(var.wireguard_cidr, 0, 0)
description = "WireGuard CIDR"
}

0 comments on commit e494df1

Please sign in to comment.