Skip to content

Commit

Permalink
Add azure_diretory_id
Browse files Browse the repository at this point in the history
  • Loading branch information
caiovfernandes committed May 22, 2024
1 parent c67482f commit 8ac039a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
18 changes: 12 additions & 6 deletions _variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,18 @@ variable "enable_self_service_portal" {
}

variable "client_connect_options" {
type = bool
default = false
description = "Indicates whether client connect options are enabled"
type = bool
default = false
description = "Indicates whether client connect options are enabled"
}

variable "connection_authorization_lambda_function_arn" {
default = null
description = "The Amazon Resource Name (ARN) of the Lambda function used for connection authorization."
}
default = null
description = "The Amazon Resource Name (ARN) of the Lambda function used for connection authorization."
}

variable "active_directory_id" {
type = string
default = null
description = "The ID of the Active Directory to be used for authentication. If not provided, the default directory will be used."
}
3 changes: 2 additions & 1 deletion vpn-endpoint.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ resource "aws_ec2_client_vpn_endpoint" "default" {
type = var.authentication_type
root_certificate_chain_arn = var.authentication_type != "certificate-authentication" ? null : aws_acm_certificate.root.arn
saml_provider_arn = var.authentication_saml_provider_arn
active_directory_id = var.active_directory_id
}

connection_log_options {
Expand All @@ -24,7 +25,7 @@ resource "aws_ec2_client_vpn_endpoint" "default" {
enabled = var.client_connect_options
lambda_function_arn = var.client_connect_options != true ? null : var.connection_authorization_lambda_function_arn
}

tags = merge(
var.tags,
tomap({
Expand Down

0 comments on commit 8ac039a

Please sign in to comment.