You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Verify that provided VPC has DNS features enabled
variable "vpc_id" {
type = string
}
data "aws_vpc" "vpc" {
id = var.vpc_id
}
module "verify_vpc" {
source = "../"
match = data.aws_vpc.vpc.enable_dns_support && data.aws_vpc.vpc.enable_dns_hostnames
error = "VPC ${var.vpc_id} must have DNS support (got ${data.aws_vpc.vpc.enable_dns_support}) and DNS hostnames (got ${data.aws_vpc.vpc.enable_dns_hostnames}) enabled"