Skip to content

Commit

Permalink
remove some redundant names
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Lombardi committed Jan 23, 2024
1 parent 59c87c7 commit 1795acb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions deploy/aws-dev/modules/cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "aws_vpc" "main" {
enable_dns_hostnames = true

tags = {
Name = "${var.prefix}-vpc"
Name = "${var.prefix}"
}
}

Expand All @@ -14,7 +14,7 @@ resource "aws_internet_gateway" "igw" {
vpc_id = aws_vpc.main.id

tags = {
Name = "${var.prefix}-igw"
Name = "${var.prefix}"
}
}

Expand Down Expand Up @@ -74,7 +74,7 @@ resource "aws_eip" "nat" {
domain = "vpc"

tags = {
Name = "${var.prefix}-nat"
Name = "${var.prefix}"
}
}

Expand All @@ -84,7 +84,7 @@ resource "aws_nat_gateway" "nat" {
subnet_id = aws_subnet.public-us-east-1a.id

tags = {
Name = "${var.prefix}-nat"
Name = "${var.prefix}"
}

depends_on = [aws_internet_gateway.igw]
Expand Down Expand Up @@ -138,7 +138,7 @@ resource "aws_route_table_association" "public-us-east-1b" {
}

resource "aws_security_group" "k3s_cluster" {
name = "${var.prefix}-k3s-sg"
name = "${var.prefix}-k3s"
description = "Security group for K3s cluster"
vpc_id = aws_vpc.main.id

Expand Down Expand Up @@ -682,16 +682,16 @@ data "aws_ssm_parameter" "client_key" {

# Postgres (RDS)
resource "aws_db_subnet_group" "default" {
name = "${var.prefix}-rds-subnet-group"
name = var.prefix
subnet_ids = [aws_subnet.private-us-east-1a.id, aws_subnet.private-us-east-1b.id]

tags = {
Name = "${var.prefix}-rds-subnet-group"
Name = "${var.prefix}"
}
}

resource "aws_security_group" "rds_sg" {
name = "${var.prefix}-rds-sg"
name = var.prefix
description = "Security group for RDS PostgreSQL instance"
vpc_id = aws_vpc.main.id

Expand All @@ -716,7 +716,7 @@ resource "aws_security_group" "rds_sg" {


resource "aws_db_instance" "postgres_db" {
identifier = "${var.prefix}-postgres"
identifier = var.prefix
engine = "postgres"
engine_version = "13.8"
instance_class = "db.t4g.medium"
Expand Down

0 comments on commit 1795acb

Please sign in to comment.