Skip to content

Commit

Permalink
Arrumando RDS
Browse files Browse the repository at this point in the history
  • Loading branch information
jonilsonds9 committed Oct 28, 2023
1 parent 94c493f commit 65a650a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions infra/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@ resource "aws_security_group" "rds" {

resource "aws_db_instance" "rds" {
identifier = "${var.project_name}-rds"
instance_class = "db.t3.micro"
allocated_storage = 10
engine = "postgres"
engine_version = "15.4"
instance_class = "db.t3.micro"
engine_version = "14.9"
username = var.db_username
password = var.db_password
db_name = var.db_default_database
skip_final_snapshot = true
vpc_security_group_ids = [aws_security_group.rds.id]
publicly_accessible = true
vpc_security_group_ids = [
aws_security_group.rds.id
]
}
skip_final_snapshot = true
}

0 comments on commit 65a650a

Please sign in to comment.