Skip to content

Commit

Permalink
Merge pull request #114 from kookmin-sw/mhsong-dev
Browse files Browse the repository at this point in the history
add s3 vpc endpiont
  • Loading branch information
mh3ong authored May 23, 2024
2 parents 6961558 + 8cc2898 commit 10c0164
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions IaC/kubernetes_cluster/vpc/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,12 @@ resource "aws_vpc_endpoint" "ecr-dkr" {
subnet_ids = tolist(aws_subnet.private_subnets[*].id)

private_dns_enabled = true
}

resource "aws_vpc_endpoint" "s3" {
vpc_id = aws_vpc.vpc.id
service_name = "com.amazonaws.${var.current_region}.s3"
vpc_endpoint_type = "Gateway"

route_table_ids = tolist(aws_route_table.private_route_tables[*].id)
}

0 comments on commit 10c0164

Please sign in to comment.