From cf97a6024ba9f732ade700d28a8084cff10ddb06 Mon Sep 17 00:00:00 2001 From: Dan Schultz Date: Thu, 26 Oct 2023 09:56:17 -0400 Subject: [PATCH] Double capacity of api instance We had attempted to move to the `c7g.xlarge` in a previous commit but unfortunately that uses a different chip architecture (ARM). There is also the c.xlarge but that is essentially the same price as the m4.xlarge except with half the RAM. --- instances/dev/main.tf | 2 +- instances/production/main.tf | 2 +- instances/staging/main.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/instances/dev/main.tf b/instances/dev/main.tf index da2f8d2..61acff7 100644 --- a/instances/dev/main.tf +++ b/instances/dev/main.tf @@ -32,7 +32,7 @@ variable "perm_env" { resource "aws_instance" "api" { ami = module.perm_env_data.backend_ami - instance_type = "m4.large" + instance_type = "m4.xlarge" vpc_security_group_ids = [module.perm_env_data.security_group] monitoring = true private_ip = "172.31.0.80" diff --git a/instances/production/main.tf b/instances/production/main.tf index 3855ff4..ced7dea 100644 --- a/instances/production/main.tf +++ b/instances/production/main.tf @@ -32,7 +32,7 @@ variable "perm_env" { resource "aws_instance" "api" { ami = module.perm_env_data.backend_ami - instance_type = "m4.large" + instance_type = "m4.xlarge" vpc_security_group_ids = [module.perm_env_data.security_group] monitoring = true subnet_id = module.perm_env_data.subnet diff --git a/instances/staging/main.tf b/instances/staging/main.tf index f0c839c..80dbd7f 100644 --- a/instances/staging/main.tf +++ b/instances/staging/main.tf @@ -32,7 +32,7 @@ variable "perm_env" { resource "aws_instance" "api" { ami = module.perm_env_data.backend_ami - instance_type = "m4.large" + instance_type = "m4.xlarge" vpc_security_group_ids = [module.perm_env_data.security_group] monitoring = true subnet_id = module.perm_env_data.subnet