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

Introduce new optional variable to attach additional security groups to the LBs #97

Merged
merged 1 commit into from
Jan 6, 2025
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
7 changes: 4 additions & 3 deletions lb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ module "lb" {
enable_proxy_protocol = var.lb_enable_proxy_protocol
additional_networks = var.additional_lb_networks

cluster_security_group_ids = [
exoscale_security_group.all_machines.id
]
cluster_security_group_ids = concat(
[exoscale_security_group.all_machines.id],
var.additional_lb_security_group_ids
)

additional_affinity_group_ids = var.additional_affinity_group_ids

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,9 @@ variable "additional_lb_networks" {
description = "List of UUIDs of additional Exoscale private networks to attach"
default = []
}

variable "additional_lb_security_group_ids" {
type = list(string)
default = []
description = "List of additional security group IDs to configure on the LBs"
}
Loading