Skip to content
Merged
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
15 changes: 7 additions & 8 deletions atp-indexer/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,13 @@ function deploy() {
)

# Downsize DB resources for non-prod environments (defaults are prod-safe)
# if [ "$infra_environment" != "prod" ]; then
DB_INSTANCE_CLASS=${TF_VAR_db_instance_class:-db.t4g.medium}
DB_READ_REPLICA_COUNT=${TF_VAR_db_read_replica_count:-0}
# else
# Use defaults from variables.tf for prod (db.r7g.2xlarge, 2 replicas)
# DB_INSTANCE_CLASS=${TF_VAR_db_instance_class:-db.r7g.2xlarge}
# DB_READ_REPLICA_COUNT=${TF_VAR_db_read_replica_count:-2}
# fi
if [ "$infra_environment" != "prod" ]; then
DB_INSTANCE_CLASS=${TF_VAR_db_instance_class:-db.t4g.medium}
DB_READ_REPLICA_COUNT=${TF_VAR_db_read_replica_count:-0}
else
DB_INSTANCE_CLASS=${TF_VAR_db_instance_class:-db.t4g.medium}
DB_READ_REPLICA_COUNT=${TF_VAR_db_read_replica_count:-1}
fi

local args="-var=rpc_url=$RPC_URL \
-var=atp_factory_address=$ATP_FACTORY_ADDRESS \
Expand Down
Loading