From 3286fd2b804deb57419fe823caa98b6cd553b114 Mon Sep 17 00:00:00 2001 From: Christian Carlsson Date: Wed, 13 Nov 2024 10:09:15 +0000 Subject: [PATCH] checkpoint --- infra/db.tf | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/infra/db.tf b/infra/db.tf index 19ee1867..b4cc6140 100644 --- a/infra/db.tf +++ b/infra/db.tf @@ -1,14 +1,15 @@ resource "aws_db_instance" "db" { - allocated_storage = 20 # Minimum required storage in GB - storage_type = "gp2" # General Purpose SSD - engine = "postgres" # Specifies the database engine as PostgreSQL - engine_version = "16.4" # PostgreSQL version 16.4 - instance_class = "db.t3.micro" # Smallest instance type available - db_name = "getstronger" # Name of your database - username = var.db_username # Master username - password = var.db_password # Master password - parameter_group_name = "default.postgres16" # Parameter group for PostgreSQL 16 - skip_final_snapshot = true # Skips the final snapshot on deletion + allocated_storage = 20 # Minimum required storage in GB + storage_type = "gp2" # General Purpose SSD + engine = "postgres" # Specifies the database engine as PostgreSQL + engine_version = "16.4" # PostgreSQL version 16.4 + instance_class = "db.t3.micro" # Smallest instance type available + db_name = "getstronger" # Name of your database + username = var.db_username # Master username + password = var.db_password # Master password + parameter_group_name = "default.postgres16" # Parameter group for PostgreSQL 16 + skip_final_snapshot = true # Skips the final snapshot on deletion + identifier = "terraform-20240816113854130600000001" # Unique identifier for the DB instance # VPC & Subnet group settings # db_subnet_group_name = aws_db_subnet_group.default.name @@ -19,7 +20,7 @@ resource "aws_db_instance" "db" { lifecycle { create_before_destroy = false - prevent_destroy = true + prevent_destroy = true } } #