route table 추가 환경변경
This commit is contained in:
5
modules/transit-gw-vpc-attatch/main.tf
Normal file
5
modules/transit-gw-vpc-attatch/main.tf
Normal 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
|
||||
}
|
0
modules/transit-gw-vpc-attatch/outputs.tf
Normal file
0
modules/transit-gw-vpc-attatch/outputs.tf
Normal file
14
modules/transit-gw-vpc-attatch/variables.tf
Normal file
14
modules/transit-gw-vpc-attatch/variables.tf
Normal 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
|
||||
}
|
Reference in New Issue
Block a user