Skip to content

Commit

Permalink
Merge pull request #131 from uktrade/fix/s3-endpoint-main-vpc
Browse files Browse the repository at this point in the history
fix: S3 endpoint in main VPC
  • Loading branch information
michalc authored Sep 12, 2024
2 parents 7af27ca + 2196939 commit f205429
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions infra/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,11 @@ resource "aws_vpc_endpoint" "main_s3" {
vpc_endpoint_type = "Gateway"
}

resource "aws_vpc_endpoint_route_table_association" "main_s3" {
vpc_endpoint_id = aws_vpc_endpoint.main_s3.id
route_table_id = aws_route_table.private_with_egress.id
}

resource "aws_vpc_endpoint" "ecs" {
vpc_id = aws_vpc.main.id
service_name = "com.amazonaws.${data.aws_region.aws_region.name}.ecs"
Expand Down

0 comments on commit f205429

Please sign in to comment.