Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions terraform/examples/basic/main.tf.example
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
version = "~> 6.0"
}
}
}
Expand Down Expand Up @@ -536,31 +536,31 @@ resource "aws_security_group" "defguard_db_sg" {
###########################################################################

output "defguard_core_private_address" {
description = "The IP address of the Defguard Core instance in the internal network"
description = "IP address of Defguard Core instance in the internal network"
value = aws_network_interface.defguard_core_network_interface.private_ip
}

output "defguard_core_public_address" {
description = "The public IP address of the Defguard Core instance"
description = "Public IP address of Defguard Core instance"
value = aws_eip.defguard_core_endpoint.public_ip
}

output "defguard_proxy_public_address" {
description = "The public IP address of the Defguard Proxy instance"
description = "Public IP address of Defguard Proxy instance"
value = aws_eip.defguard_proxy_endpoint.public_ip
}

output "defguard_proxy_private_address" {
description = "The private IP address of the Defguard Proxy instance"
description = "Private IP address of Defguard Proxy instance"
value = aws_network_interface.defguard_proxy_network_interface.private_ip
}

output "defguard_gateway_public_addresses" {
description = "The public IP addresses of the Defguard Gateway instances"
description = "Public IP addresses of Defguard Gateway instances"
value = [for gw in aws_eip.defguard_gateway_endpoint : gw.public_ip]
}

output "defguard_gateway_private_addresses" {
description = "The private IP addresses of the Defguard Gateway instances"
description = "Private IP addresses of Defguard Gateway instances"
value = [for gw in aws_network_interface.defguard_gateway_network_interface : gw.private_ip]
}
4 changes: 1 addition & 3 deletions terraform/modules/core/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ resource "aws_instance" "defguard_core" {
})
user_data_replace_on_change = true

network_interface {
primary_network_interface {
network_interface_id = var.network_interface_id
device_index = 0
}

tags = {
Name = "defguard-core-instance"
}
}

4 changes: 4 additions & 0 deletions terraform/modules/core/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
output "instance_id" {
description = "ID of Defguard Core instance"
value = aws_instance.defguard_core.id
}
3 changes: 1 addition & 2 deletions terraform/modules/gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ resource "aws_instance" "defguard_gateway" {
})
user_data_replace_on_change = true

network_interface {
primary_network_interface {
network_interface_id = var.network_interface_id
device_index = 0
}

tags = {
Expand Down
4 changes: 4 additions & 0 deletions terraform/modules/gateway/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
output "instance_id" {
description = "ID of Defguard Gateway instance"
value = aws_instance.defguard_gateway.id
}
3 changes: 1 addition & 2 deletions terraform/modules/proxy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ resource "aws_instance" "defguard_proxy" {
})
user_data_replace_on_change = true

network_interface {
primary_network_interface {
network_interface_id = var.network_interface_id
device_index = 0
}

tags = {
Expand Down
7 changes: 6 additions & 1 deletion terraform/modules/proxy/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
output "proxy_private_address" {
description = "The private IP address of the Defguard Proxy instance"
description = "Private IP address of Defguard Proxy instance"
value = aws_instance.defguard_proxy.private_ip
}

output "instance_id" {
description = "ID of Defguard Proxy instance"
value = aws_instance.defguard_proxy.id
}
1 change: 0 additions & 1 deletion terraform/modules/proxy/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@ rm -f /tmp/defguard-proxy.deb

log "Setup completed."
) 2>&1 | tee -a "$LOG_FILE"