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" {
2
2
region = " us-east-2"
3
3
}
4
4
5
+ data "aws_region" "current" {}
6
+
5
7
locals {
6
8
cluster_name = " test"
7
9
@@ -121,9 +123,26 @@ module "vpc" {
121
123
tags = local. tags
122
124
}
123
125
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
+
124
143
module "eks" {
125
144
# 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 "
127
146
128
147
cluster_name = local. cluster_name
129
148
cluster_version = local. cluster_version
You can’t perform that action at this time.
0 commit comments