Skip to content

Commit

Permalink
update truefoundry_db_ingress_cidr_blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeAjayi committed Aug 27, 2024
1 parent 2fc3031 commit 3e40f28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "aws_security_group" "rds" {
to_port = local.truefoundry_db_port
protocol = "tcp"
security_groups = var.truefoundry_db_ingress_security_group != "" ? [var.truefoundry_db_ingress_security_group] : []
cidr_blocks = var.truefoundry_db_ingress_cidr_block != "" ? [var.truefoundry_db_ingress_cidr_block] : []
cidr_blocks = length(var.truefoundry_db_ingress_cidr_blocks) > 0 ? var.truefoundry_db_ingress_cidr_blocks : []
}

egress {
Expand Down
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ variable "truefoundry_db_ingress_security_group" {
description = "SG allowed to connect to the database"
}

variable "truefoundry_db_ingress_cidr_block" {
type = string
description = "CIDR block allowed to connect to the database"
variable "truefoundry_db_ingress_cidr_blocks" {
type = list(string)
description = "CIDR blocks allowed to connect to the database"
}

variable "truefoundry_db_subnet_ids" {
Expand Down

0 comments on commit 3e40f28

Please sign in to comment.