Skip to content

Commit

Permalink
[NRL-804] Remove unused RDS resources from prod TF infra
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdean3-nhs committed Jul 11, 2024
1 parent 13c7fa2 commit 12d6721
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 231 deletions.
2 changes: 2 additions & 0 deletions terraform/account-wide-infrastructure/prod/domain.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

/*
module "dev-custom-domain-name" {
source = "../modules/env-custom-domain-name"
domain_name = var.prod_api_domain_name
domain_zone = aws_route53_zone.prod-ns.name
mtls_certificate_file = "s3://${module.prod-truststore-bucket.bucket_name}/${module.prod-truststore-bucket.certificates_object_key}"
}
*/
96 changes: 0 additions & 96 deletions terraform/account-wide-infrastructure/prod/rds-cluster-vpc.tf

This file was deleted.

39 changes: 0 additions & 39 deletions terraform/account-wide-infrastructure/prod/rds.tf

This file was deleted.

45 changes: 0 additions & 45 deletions terraform/account-wide-infrastructure/prod/security-groups.tf

This file was deleted.

53 changes: 2 additions & 51 deletions terraform/account-wide-infrastructure/prod/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,56 +4,7 @@ variable "assume_account" {

variable "assume_role" {}

variable "prod_api_domain_name" {
/*variable "prod_api_domain_name" {
description = "The internal DNS name of the API Gateway for the prod environment"
default = "api.record-locator.national.nhs.uk"
}

variable "private_subnet_cidr_blocks" {
description = "Available CIDR blocks for private subnets"
type = list(string)
default = [
"10.0.1.0/24",
"10.0.2.0/24",
"10.0.3.0/24",
"10.0.4.0/24",
]
}

variable "subnet_count" {
description = "Number of subnets"
type = map(number)
default = {
private = 3
}
}

variable "vpc_cidr_block" {
description = "CIDR block for VPC"
type = string
default = "10.0.0.0/16"
}

variable "engine_version" {
description = "engine version for rds cluster"
type = string
default = "15.2"
}

variable "engine" {
description = "enginer for the rds cluster"
type = string
default = "aurora-postgresql"
}

variable "user_name" {
description = "user name for the database cluster"
type = string
default = "nrlf"
}

variable "instance_type" {
description = "Instance type for the database instance"
type = string
default = "db.t3.medium"
}
}*/

0 comments on commit 12d6721

Please sign in to comment.