Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port use public ip #336

Merged
merged 1 commit into from
Jan 11, 2024
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
2 changes: 1 addition & 1 deletion modules/azurerm/agentless-gw/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module "gw_instance" {
proxy_info = var.ingress_communication_via_proxy
skip_instance_health_verification = var.skip_instance_health_verification
terraform_script_path_folder = var.terraform_script_path_folder
use_public_ip = false
use_public_ip = var.use_public_ip
attach_persistent_public_ip = false
sonarw_private_key_secret_name = var.sonarw_private_key_secret_name
sonarw_public_key_content = var.sonarw_public_key_content
Expand Down
6 changes: 6 additions & 0 deletions modules/azurerm/agentless-gw/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ variable "public_ip" {
description = "Create public IP for the instance"
}

variable "use_public_ip" {
type = bool
default = false
description = "Whether to use the DSF instance's public or private IP to connect to the instance"
}

variable "instance_type" {
type = string
default = "Standard_E4as_v5" # 4 cores & 32GB ram
Expand Down