Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Optimize RDS #6

Merged
merged 2 commits into from
Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions terraform/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ terraform {
}

backend "s3" {
bucket = "fiap-3soat-g15-infra-database-rds-state"
bucket = "fiap-3soat-g15-infra-db-state"
key = "live/terraform.tfstate"
region = "sa-east-1"
region = "us-east-1"
}
}

Expand Down
8 changes: 6 additions & 2 deletions terraform/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ resource "aws_db_instance" "default" {
identifier = "selfordermanagement"
engine = "postgres"
engine_version = "15.6"
instance_class = "db.t3.micro"
instance_class = "db.t2.micro"
parameter_group_name = "default.postgres15"
skip_final_snapshot = true

username = "master"
manage_master_user_password = true

multi_az = false
backup_retention_period = 0
skip_final_snapshot = true
}
2 changes: 1 addition & 1 deletion terraform/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
region = "sa-east-1"
region = "us-east-1"

tags = {
managed_by_terraform = true
Expand Down
Loading