Skip to content

Commit

Permalink
chore: remove ECR endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
sugdyzhekov committed Nov 26, 2020
1 parent 5a192bd commit 97999af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Terraform module to create NAT instance. The module provides:

* NAT instance security group with rules allowed 443 port by default
* VPC S3/ECR Logs endpoints to avoid passing internal traffic through NAT
* VPC S3 Logs endpoints to avoid passing internal traffic through NAT

## Usage

Expand Down
10 changes: 0 additions & 10 deletions endpoints.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,3 @@ resource "aws_vpc_endpoint" "s3" {
route_table_ids = [aws_route_table.nat.id]
tags = local.tags
}

resource "aws_vpc_endpoint" "ecr" {
vpc_id = local.vpc_id
service_name = "com.amazonaws.${data.aws_region.current.name}.ecr.dkr"
vpc_endpoint_type = "Interface"
private_dns_enabled = true
auto_accept = true
route_table_ids = [aws_route_table.nat.id]
tags = local.tags
}

0 comments on commit 97999af

Please sign in to comment.