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

Feature/self service portal #33

Merged
merged 3 commits into from
Jun 7, 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
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