Skip to content

Commit 4e63bc5

Browse files
authored
Merge pull request #184 from tablexi/dh-optionally-turn-off-txi-office-access
Optionally expose RDS to Table XI office
2 parents 9ebac65 + 954e3a7 commit 4e63bc5

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

aws/rds/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ resource "aws_security_group" "sg_on_rds_instance" {
7575
vpc_id = var.vpc_id
7676

7777
ingress {
78-
cidr_blocks = concat([local.table_xi_office_cidr_block], var.sg_cidr_blocks)
78+
cidr_blocks = var.expose_to_txi_office ? concat([local.table_xi_office_cidr_block], var.sg_cidr_blocks) : var.sg_cidr_blocks
7979
from_port = local.port
8080
protocol = "tcp"
8181
security_groups = var.security_groups_for_ingress

aws/rds/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,9 @@ variable "vpc_security_group_ids" {
141141
default = []
142142
}
143143

144+
145+
variable "expose_to_txi_office" {
146+
description = "include TXI Office IP in security group"
147+
type = bool
148+
default = true
149+
}

0 commit comments

Comments
 (0)