Skip to content

Commit

Permalink
[#286] Revert adding of aws_vpc_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihisil committed Nov 29, 2024
1 parent 0cddab3 commit 5b0ed60
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 26 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/generators/addons/aws/modules/core/vpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const vpcModuleContent = dedent`
source = "../modules/vpc"
env_namespace = local.env_namespace
region = var.region
}`;

const applyAwsVpc = async (options: AwsOptions) => {
Expand Down
19 changes: 0 additions & 19 deletions templates/addons/aws/modules/vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,3 @@ module "vpc" {
one_nat_gateway_per_az = false
enable_dns_hostnames = true
}

data "aws_route_tables" "private_route_table" {
vpc_id = module.vpc.vpc_id

filter {
name = "tag:Name"
values = ["${var.env_namespace}-vpc-private"]
}
}

resource "aws_vpc_endpoint" "logs" {
vpc_id = module.vpc.vpc_id
service_name = "com.amazonaws.${var.region}.logs"
route_table_ids = data.aws_route_tables.private_route_table.ids

tags = {
Name = "${var.env_namespace}-vpc-endpoint-logs"
}
}
5 changes: 0 additions & 5 deletions templates/addons/aws/modules/vpc/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,3 @@ variable "env_namespace" {
description = "The namespace with environment for the VPCs, used as the prefix for the VPC names, e.g. acme-web-staging"
type = string
}

variable "region" {
description = "AWS region"
type = string
}

0 comments on commit 5b0ed60

Please sign in to comment.