Skip to content

Commit

Permalink
Merge pull request #33 from DNXLabs/feature/self_service_portal
Browse files Browse the repository at this point in the history
Feature/self service portal
  • Loading branch information
brunodasilvalenga authored Jun 7, 2024
2 parents 244f92f + b016ed1 commit db71c69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ The following resources will be created:
| name | Name prefix for the resources of this stack | `any` | n/a | yes |
| organization\_name | Name of organization to use in private certificate | `string` | `"ACME, Inc"` | no |
| security\_group\_id | Optional security group id to use instead of the default created | `string` | `""` | no |
| self\_service\_saml\_provider\_arn | (Optional) The ARN of the IAM SAML identity provider for portal if self portal is enabled. | `any` | `null` | no |
| split\_tunnel | With split\_tunnel false, all client traffic will go through the VPN. | `bool` | `true` | no |
| subnet\_ids | Subnet ID to associate clients (each subnet passed will create an VPN association - costs involved) | `list(string)` | n/a | yes |
| tags | Extra tags to attach to resources | `map(string)` | `{}` | no |
Expand Down
6 changes: 6 additions & 0 deletions _variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,9 @@ variable "active_directory_id" {
default = null
description = "The ID of the Active Directory to be used for authentication. If not provided, the default directory will be used."
}

variable "self_service_saml_provider_arn" {
default = null
description = "(Optional) The ARN of the IAM SAML identity provider for portal if self portal is enabled."
}

1 change: 1 addition & 0 deletions 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
self_service_saml_provider_arn = var.enable_self_service_portal == true ? var.self_service_saml_provider_arn : null
active_directory_id = var.active_directory_id
}

Expand Down

0 comments on commit db71c69

Please sign in to comment.