route table 추가 환경변경
This commit is contained in:
6
modules/transit-gateway/main.tf
Normal file
6
modules/transit-gateway/main.tf
Normal file
@ -0,0 +1,6 @@
|
||||
resource "aws_ec2_transit_gateway" "tgw" {
|
||||
description = "tgw"
|
||||
tags = {
|
||||
Name = "${var.tag_name}"
|
||||
}
|
||||
}
|
3
modules/transit-gateway/outputs.tf
Normal file
3
modules/transit-gateway/outputs.tf
Normal file
@ -0,0 +1,3 @@
|
||||
output "tgw_id" {
|
||||
value = aws_ec2_transit_gateway.tgw.id
|
||||
}
|
5
modules/transit-gateway/variables.tf
Normal file
5
modules/transit-gateway/variables.tf
Normal file
@ -0,0 +1,5 @@
|
||||
variable "tag_name" {
|
||||
description = "tag_name"
|
||||
type = string
|
||||
|
||||
}
|
Reference in New Issue
Block a user