route table 추가 환경변경

This commit is contained in:
2023-01-13 02:55:31 +09:00
parent e9c35f55b5
commit d3f56ecc0c
20 changed files with 274 additions and 201 deletions

View File

@ -0,0 +1,5 @@
resource "aws_ec2_transit_gateway_vpc_attachment" "tgw-vpc-attatch" {
subnet_ids = var.subnet_id_list
transit_gateway_id = var.tgw_id
vpc_id = var.vpc_id
}

View File

@ -0,0 +1,14 @@
variable "subnet_id_list" {
description = "subnet_id_list"
type = list(string)
}
variable "tgw_id" {
description = "tgw_id"
type = string
}
variable "vpc_id" {
description = "vpc_id"
type = string
}