Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

update macrodb prod to gp3 (#2244)

Will Hutchinson87d05d88e6c3
diff --git a/infra/stacks/macrodb/Pulumi.prod.yaml b/infra/stacks/macrodb/Pulumi.prod.yaml
index 46b90e9314..5c1562f3f8 100644
--- a/infra/stacks/macrodb/Pulumi.prod.yaml
+++ b/infra/stacks/macrodb/Pulumi.prod.yaml
@@ -4,7 +4,9 @@ config:
macrodb:parameter_group_family: postgres14
macrodb:engine_version: 14.17
macrodb:instance_size: db.t4g.xlarge
- macrodb:storage_type: gp2
+ macrodb:storage_type: gp3
+ macrodb:storage_iops: 12000
+ macrodb:storage_throughput: 500
macrodb:allocated_storage: 1500
macrodb:max_allocated_storage: 2000
macrodb:ca_cert_identifier: rds-ca-rsa2048-g1
diff --git a/infra/stacks/macrodb/index.ts b/infra/stacks/macrodb/index.ts
index 7fe4cbaed6..ef78cac6e1 100644
--- a/infra/stacks/macrodb/index.ts
+++ b/infra/stacks/macrodb/index.ts
@@ -45,6 +45,8 @@ const database = new aws.rds.Instance(
engineVersion: config.require('engine_version'),
instanceClass: config.require('instance_size'),
storageType: config.require('storage_type'),
+ iops: config.getNumber('storage_iops'), // this may be undefined to allow for default iops configuration
+ storageThroughput: config.getNumber('storage_throughput'),
allocatedStorage: config.requireNumber('allocated_storage'),
maxAllocatedStorage: config.requireNumber('max_allocated_storage'),
caCertIdentifier: config.require('ca_cert_identifier'),