Skip to content

Commit

Permalink
Missing defaults and add pass-through from byo-vpc to byo-db
Browse files Browse the repository at this point in the history
  • Loading branch information
rfairburn committed Jun 22, 2024
1 parent c9f0eb5 commit 0d1b9a9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
6 changes: 6 additions & 0 deletions terraform/byo-vpc/byo-db/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ variable "fleet_config" {
}), {
subnets = null
security_groups = null
ingress_sources = {
cidr_blocks = []
ipv6_cidr_blocks = []
security_groups = []
prefix_list_ids = []
}
})
autoscaling = optional(object({
max_capacity = optional(number, 5)
Expand Down
4 changes: 3 additions & 1 deletion terraform/byo-vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ module "byo-db" {
address = "${module.redis.endpoint}:${module.redis.port}"
}
networking = {
subnets = var.vpc_config.networking.subnets
subnets = var.vpc_config.networking.subnets
security_groups = var.fleet_config.networking.security_groups
ingress_sources = var.fleet_config.networking.ingress_sources
}
})
ecs_cluster = var.ecs_cluster
Expand Down
6 changes: 6 additions & 0 deletions terraform/byo-vpc/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ variable "fleet_config" {
}), {
subnets = null
security_groups = null
ingress_sources = {
cidr_blocks = []
ipv6_cidr_blocks = []
security_groups = []
prefix_list_ids = []
}
})
autoscaling = optional(object({
max_capacity = optional(number, 5)
Expand Down
6 changes: 6 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,12 @@ variable "fleet_config" {
}), {
subnets = null
security_groups = null
ingress_sources = {
cidr_blocks = []
ipv6_cidr_blocks = []
security_groups = []
prefix_list_ids = []
}
})
autoscaling = optional(object({
max_capacity = optional(number, 5)
Expand Down

0 comments on commit 0d1b9a9

Please sign in to comment.