AdeMotors

A dealership platform with an AI sales agent, designed to run for about $90 a month instead of $494.

Category
Car Dealership Platform
Status
In production
My role
Cloud architect and full-stack developer
Timeline
March 2024 – April 2026
Company
Elite Nexus Solutions
~$90/moestimated running cost against a ~$494 original plan, about 82% lower (design estimate, not billed spend)
1,500+automated tests across backend, frontend and infrastructure
7 stacksthe full platform deployable from code with CDK
40 × 3AI agent eval cases, each run three times against the live model
Screenshot of the AdeMotors website
01

The problem

The business needed a production-grade dealership platform with inventory, invoicing and an AI sales assistant, without an enterprise cloud bill for one small client.

02

Architecture decisions

  • No NAT gateway, RDS Proxy or ElastiCacheThese were the bulk of the original ~$494 a month plan. Lambda reaches the database through a VPC proxy function and an S3 gateway endpoint, so the design estimate fell to about $90 a month.
  • Search inside Aurora (pgvector, tsvector, pg_trgm) instead of OpenSearchOne datastore handles keyword, fuzzy and semantic search, and removes a service that would have cost roughly $350 a month.
  • ARM64 Lambda with aliases behind API Gateway and a Cognito authorizerCheaper compute, safe version rollouts and authentication before any code runs.
  • WAF, KMS key rotation, private S3 and an account guardRate limits and managed rules in front of the API, encrypted data, and a CDK check that refuses to deploy into the wrong account.
03

What I built

  • Defined the platform as code in seven AWS CDK stacks: budget, database, auth, storage, API, monitoring and hosting.
  • Aurora Serverless v2 PostgreSQL 16 (encrypted), ten Lambda functions including durable-function workflows for lead lifecycle and re-indexing, and a REST API of more than 80 methods.
  • Built the Next.js frontend on Amplify, an AI sales-agent chat widget on Amazon Bedrock (Nova) and an invoicing module.
  • Set up 8 CloudWatch alarms and 2 dashboards, and a budget stack to watch spend.
  • Wrote an evaluation harness for the AI agent: 40 cases, each run 3 times against the real model.
04

Before and after

What changedBeforeAfter
Estimated monthly running cost~$494 (original plan)~$90 (design estimate)
Search serviceOpenSearch, roughly $350 a monthInside Aurora (pgvector, tsvector, pg_trgm)

Technologies

Next.jsTypeScriptAWS CDKAurora PostgreSQLpgvectorLambda (ARM64)API GatewayCognitoWAFKMSCloudWatchAmazon BedrockS3CloudFrontAmplify