File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ resource "aws_ec2_client_vpn_endpoint" "this" {
3939 dns_servers = var. dns_servers
4040 security_group_ids = concat ([aws_security_group . this . id ], var. additional_security_groups )
4141 server_certificate_arn = var. server_certificate_arn
42+ self_service_portal = var. self_service_portal
4243 split_tunnel = var. split_tunnel_enabled
4344 vpc_id = var. vpc_id
4445 tags = local. tags
Original file line number Diff line number Diff line change @@ -173,6 +173,17 @@ variable "server_certificate_arn" {
173173 }
174174}
175175
176+ variable "self_service_portal" {
177+ default = " disabled"
178+ description = " Whether to enable the self-service portal. Valid values are `enabled` or `disabled`."
179+ type = string
180+
181+ validation {
182+ error_message = " Valid values are `enabled` or `disabled`."
183+ condition = contains ([" enabled" , " disabled" ], var. self_service_portal )
184+ }
185+ }
186+
176187variable "split_tunnel_enabled" {
177188 default = true
178189 description = " Whether to enable split tunneling"
You can’t perform that action at this time.
0 commit comments