File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -38,5 +38,13 @@ module "vpc" {
38
38
public_subnet_tags = var. eks_enabled ? { " kubernetes.io/role/elb" = 1 } : null
39
39
private_subnet_tags = var. eks_enabled ? { " kubernetes.io/role/internal-elb" = 1 } : null
40
40
41
+ tags = local. tags
42
+ }
43
+
44
+ resource "aws_vpc_endpoint" "s3" {
45
+ vpc_id = module. vpc . vpc_id
46
+ service_name = " com.amazonaws.${ var . region } .s3"
47
+ vpc_endpoint_type = " Gateway"
48
+ route_table_ids = module. vpc . private_route_table_ids
41
49
tags = local. tags
42
50
}
Original file line number Diff line number Diff line change @@ -11,4 +11,9 @@ variable "eks_enabled" {
11
11
variable "single_nat_gateway" {
12
12
description = " Controls whether single NAT gateway used for all public subnets"
13
13
type = bool
14
+ }
15
+
16
+ variable "region" {
17
+ description = " AWS region to provision resources in"
18
+ type = string
14
19
}
You can’t perform that action at this time.
0 commit comments