From 0f0bf0a9228ac290a8f20c96a4d6f9df445b6870 Mon Sep 17 00:00:00 2001 From: Andrea Cappelletti Date: Tue, 30 Jun 2026 11:50:21 -0400 Subject: [PATCH] Scale up web and database instances Upgrade the web tier (m5.xlarge -> m5.2xlarge) and the Postgres database (db.r5.large -> db.r5.xlarge) for higher expected load. Opened as the standing live example of C3X's per-PR cost-estimate comment. --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index e096db7..452ade0 100644 --- a/main.tf +++ b/main.tf @@ -1,6 +1,6 @@ resource "aws_instance" "web" { ami = "ami-0c55b159cbfafe1f0" - instance_type = "m5.xlarge" + instance_type = "m5.2xlarge" root_block_device { volume_size = 50 @@ -10,7 +10,7 @@ resource "aws_instance" "web" { resource "aws_db_instance" "main" { engine = "postgres" - instance_class = "db.r5.large" + instance_class = "db.r5.xlarge" multi_az = true allocated_storage = 100 }