Skip to content

Commit

Permalink
comment out the vpc endpoint changes for now
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-k1998 committed Mar 25, 2024
1 parent 98791f3 commit 5be6b0b
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions terraform/environments/wardship/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ resource "aws_ecs_service" "wardship_ecs_service" {
network_configuration {
subnets = data.aws_subnets.shared-public.ids
security_groups = [aws_security_group.ecs_service.id]
assign_public_ip = false
assign_public_ip = true
}

load_balancer {
Expand Down Expand Up @@ -198,7 +198,7 @@ resource "aws_ecs_service" "wardship_ecs_service_dev" {
network_configuration {
subnets = data.aws_subnets.shared-public.ids
security_groups = [aws_security_group.ecs_service.id]
assign_public_ip = false
assign_public_ip = true
}

load_balancer {
Expand Down Expand Up @@ -508,30 +508,32 @@ module "pagerduty_core_alerts_prod" {
# subnet_id = data.aws_subnets.shared-private.ids[0]
# }

resource "aws_vpc_endpoint" "ecr_dkr" {
vpc_id = data.aws_vpc.shared.id
service_name = "com.amazonaws.eu-west-2.ecr.dkr"
vpc_endpoint_type = "Interface"
private_dns_enabled = true
//VPC endpoint stuff:

security_group_ids = [aws_security_group.ecs_service.id]
subnet_ids = data.aws_subnets.shared-private.ids
}
# resource "aws_vpc_endpoint" "ecr_dkr" {
# vpc_id = data.aws_vpc.shared.id
# service_name = "com.amazonaws.eu-west-2.ecr.dkr"
# vpc_endpoint_type = "Interface"
# private_dns_enabled = true

resource "aws_vpc_endpoint" "ecr_api" {
vpc_id = data.aws_vpc.shared.id
service_name = "com.amazonaws.eu-west-2.ecr.api"
vpc_endpoint_type = "Interface"
private_dns_enabled = true
# security_group_ids = [aws_security_group.ecs_service.id]
# subnet_ids = data.aws_subnets.shared-private.ids
# }

security_group_ids = [aws_security_group.ecs_service.id]
subnet_ids = data.aws_subnets.shared-private.ids
}
# resource "aws_vpc_endpoint" "ecr_api" {
# vpc_id = data.aws_vpc.shared.id
# service_name = "com.amazonaws.eu-west-2.ecr.api"
# vpc_endpoint_type = "Interface"
# private_dns_enabled = true

# security_group_ids = [aws_security_group.ecs_service.id]
# subnet_ids = data.aws_subnets.shared-private.ids
# }

resource "aws_vpc_endpoint" "s3" {
vpc_id = data.aws_vpc.shared.id
service_name = "com.amazonaws.eu-west-2.s3"
vpc_endpoint_type = "Gateway"
# resource "aws_vpc_endpoint" "s3" {
# vpc_id = data.aws_vpc.shared.id
# service_name = "com.amazonaws.eu-west-2.s3"
# vpc_endpoint_type = "Gateway"

route_table_ids = data.aws_subnets.shared-private.ids
}
# route_table_ids = data.aws_subnets.shared-private.ids
# }

0 comments on commit 5be6b0b

Please sign in to comment.