我已经使用官方中转网关模块创建了 tgw,并且我正在使用默认路由表,我还看到该模块创建了一个额外的路由表,我无法通过 tf 代码将其删除。
module "transit-gateway" {
source = "terraform-aws-modules/transit-gateway/aws"
version = "1.4.0"
name = var.tgw
amazon_side_asn = 64532
enable_auto_accept_shared_attachments = true
vpc_attachments = {
vpc = {
vpc_id = module.vpc.vpc_id
subnet_ids = [module.vpc.private_subnets[0]]
dns_support = true
ipv6_support = false
transit_gateway_default_route_table_association = true
transit_gateway_default_route_table_propagation = true
}
}
ram_allow_external_principals = true
ram_principals = [123456789, 0987654321]
tags = {
Environment = "${var.env}"
Automated = "Terraform"
Owner = "${var.owner}"
Project = "${var.project}"
}
}