File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ provider "aws" {
22 region = " us-east-2"
33}
44
5+ data "aws_region" "current" {}
6+
57locals {
68 cluster_name = " test"
79@@ -121,9 +123,26 @@ module "vpc" {
121123 tags = local. tags
122124}
123125
126+ resource "aws_vpc_endpoint" "s3" {
127+ vpc_id = module. vpc . vpc_id
128+ service_name = " com.amazonaws.${ data . aws_region . current . name } .s3"
129+ route_table_ids = concat (
130+ module. vpc . public_route_table_ids ,
131+ module. vpc . private_route_table_ids ,
132+ module. vpc . intra_route_table_ids
133+ )
134+
135+ tags = merge (
136+ local. tags ,
137+ {
138+ Name = " ${ module . vpc . vpc_id } S3 Gateway Endpoint"
139+ }
140+ )
141+ }
142+
124143module "eks" {
125144 # source = "../"
126- source = " github.com/tldr-devops/aws-eks-terraform?ref=1.1 "
145+ source = " github.com/tldr-devops/aws-eks-terraform?ref=1.2 "
127146
128147 cluster_name = local. cluster_name
129148 cluster_version = local. cluster_version
You can’t perform that action at this time.
0 commit comments