This commit is contained in:
2025-11-18 03:20:27 +00:00
parent c50d803865
commit fadee048d7
49 changed files with 3243 additions and 0 deletions

View File

@ -0,0 +1,10 @@
//라우팅 테이블 서브넷 연결
resource "aws_route_table_association" "route-association" {
# for_each = toset(var.subnet_ids)
# subnet_id = each.value
count = var.association_count
subnet_id = var.subnet_ids[count.index]
route_table_id = var.route_table_id
}

View File

View File

@ -0,0 +1,14 @@
variable "subnet_ids" {
description = "Subnet id"
type = list(any)
}
variable "route_table_id" {
description = "Subnet id"
type = string
}
variable "association_count" {
description = "Subnet count"
type = number
}