Iam使用terraform注册表中的vpc模块创建vpc。
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "2.77.0"
....
}
我想要删除连接到公有子网的igw。任何帮助都将不胜感激。
发布于 2021-03-16 11:44:49
该模块提供create_igw option
variable "create_igw" {
description = "Controls if an Internet Gateway is created for public subnets and the related routes that connect them."
type = bool
default = true
}如果您不需要igw,则将其设置为false:
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "2.77.0"
....
create_igw = false
}https://stackoverflow.com/questions/66648751
复制相似问题