From 9c0af27bdbe1f6c88852ad77100f3a421f2067a1 Mon Sep 17 00:00:00 2001 From: KF Date: Thu, 22 Sep 2022 00:46:56 +0800 Subject: [PATCH] UPD: deploy vpc endpoints by default --- modules/networking/vpc_subnets/vpc.tf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/networking/vpc_subnets/vpc.tf b/modules/networking/vpc_subnets/vpc.tf index ca4ca92..d488954 100644 --- a/modules/networking/vpc_subnets/vpc.tf +++ b/modules/networking/vpc_subnets/vpc.tf @@ -158,4 +158,15 @@ resource "aws_default_security_group" default-sg { Name = "${local.resource-prefix}-defaultsg" }, ) +} + +# Enable gateway endpoints which are free +module vpc-ep { + source = "../vpc-endpoints" + + default-tags = var.default-tags + gateway-ep-services = ["s3","dynamodb"] + interface-ep-services = [] + resource-prefix = local.resource-prefix + vpc-id = aws_vpc.vpc.id } \ No newline at end of file