Skip to content

Commit 6ccded3

Browse files
authored
Merge pull request #7 from masterpointio/additional_security_group_ids
feat(networking): allow adding additional security groups to the Tailscale instance
2 parents f285e30 + 64f2aef commit 6ccded3

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

main.tf

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ module "tailscale_subnet_router" {
1414
context = module.this.context
1515
tags = module.this.tags
1616

17-
vpc_id = var.vpc_id
18-
subnet_ids = var.subnet_ids
19-
key_pair_name = var.key_pair_name
20-
create_run_shell_document = var.create_run_shell_document
17+
vpc_id = var.vpc_id
18+
subnet_ids = var.subnet_ids
19+
key_pair_name = var.key_pair_name
20+
additional_security_group_ids = var.additional_security_group_ids
21+
create_run_shell_document = var.create_run_shell_document
2122

2223
session_logging_kms_key_alias = var.session_logging_kms_key_alias
2324
session_logging_enabled = var.session_logging_enabled

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ variable "subnet_ids" {
1212
description = "The Subnet IDs which the Tailscale Subnet Router EC2 instance will run in. These *should* be private subnets."
1313
}
1414

15+
variable "additional_security_group_ids" {
16+
default = []
17+
type = list(string)
18+
description = "Additional Security Group IDs to associate with the Tailscale Subnet Router EC2 instance."
19+
}
20+
1521
variable "create_run_shell_document" {
1622
default = true
1723
type = bool

0 commit comments

Comments
 (0)