Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Oct 31, 2024
1 parent 44a1394 commit 751f309
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 11 deletions.
13 changes: 8 additions & 5 deletions modules/database/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ module "db" {
major_engine_version = "13"
instance_class = var.instance_class

allocated_storage = var.allocated_storage
storage_encrypted = true
password = var.database_password

allocated_storage = var.allocated_storage
max_allocated_storage = var.max_allocated_storage
storage_encrypted = true

db_name = var.database_name
username = var.database_username
Expand All @@ -21,10 +24,10 @@ module "db" {
subnet_ids = var.database_subnet_ids
vpc_security_group_ids = [aws_security_group.database.id]

maintenance_window = "Mon:00:00-Mon:03:00"
backup_window = "03:00-06:00"
maintenance_window = var.maintenance_window
backup_window = var.backup_window

backup_retention_period = 7
backup_retention_period = var.backup_retention_period
skip_final_snapshot = true

tags = var.tags
Expand Down
6 changes: 0 additions & 6 deletions modules/database/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,6 @@ variable "maintenance_window" {
default = "Mon:00:00-Mon:03:00"
}

variable "parameter_group_family" {
description = "Database parameter group family"
type = string
default = "postgres13"
}

variable "tags" {
description = "Tags to apply to all resources"
type = map(string)
Expand Down
10 changes: 10 additions & 0 deletions modules/database/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 1.0"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
10 changes: 10 additions & 0 deletions modules/eks/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 1.0"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
10 changes: 10 additions & 0 deletions modules/networking/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 1.0"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
10 changes: 10 additions & 0 deletions modules/storage/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 1.0"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}

0 comments on commit 751f309

Please sign in to comment.