Your Old AWS Projects Deserve a Second Look: Learning, Auditing, and Improving with AI

Your Old AWS Projects Deserve a Second Look: Learning, Auditing, and Improving with AI

What if the best way to improve your AWS skills was to revisit the projects you built months ago? Discover how Agent Toolkit for AWS and the Well-Architected Framework can help you audit existing applications, identify improvement opportunities, and turn new knowledge into practical changes.

Data Engineer | Building with AWS, DevOps, Serverless and Generative AI.

The Project I Built in July — and Why I'm Revisiting It

How I'm using Agent Toolkit for AWS and the Well-Architected Framework to turn new knowledge into real improvements.


1. We Keep Learning, but What Happens to Our Old Projects?

In July 2026, I built a personal finance application using AWS services. At that time, my goal was straightforward: create something useful, put my AWS knowledge into practice, and learn through building.

The project worked, and I continued learning.

But a few months later, I started thinking about something: What happens to the projects we built when we knew less than we know today?

As developers, we constantly study new concepts, explore services, earn certifications, and discover better architectural practices. We usually apply that knowledge to our next project.
But what about the previous ones?

I believe learning shouldn't stop when an application works. We should also revisit our existing projects, question earlier decisions, and identify opportunities to improve.

Today, AI-powered development tools make that process more accessible.

My goal is to explore a continuous improvement cycle:

Learn → Build → Audit → Improve → Repeat.

And I'll use one of my own projects to demonstrate it.

2. Understanding My Original Architecture

The project I'll revisit is  FinanzasPersonales , an open-source personal finance application built with React, TypeScript, and AWS Amplify Gen 2.
It helps manage financial transactions, budgets, dashboards, cash flow, recurring payments, and bank reconciliations.

Its AWS architecture includes:
  • AWS Amplify Hosting for deploying the frontend.
  • Amazon Cognito for user authentication.
  • AWS AppSync for the GraphQL API.
  • Amazon DynamoDB for storing financial data.
  • AWS CDK and CloudFormation for infrastructure management.

The repository also includes automated tests and infrastructure configuration.
Although I started the project in July, it has evolved since then, including improvements to dependencies, AWS resource tags, and deployment documentation.

For this exercise, I'm reviewing the current codebase while looking back at the decisions made during its development.

Before changing anything, I want to understand three things:
  1. How is the application designed today?
  1. Which decisions deserve further investigation?
  1. What measurable improvements could I introduce?

This matters because an audit should begin with evidence, not assumptions.

3. Setting Up Agent Toolkit for AWS

To assist with the review, I chose  Agent Toolkit for AWS .

Agent Toolkit integrates AWS-specific capabilities with supported AI coding agents. It provides an AWS MCP Server connection and specialized AWS skills that help developers work with AWS documentation and resources.
It doesn't replace your IDE or AI agent. Instead, it extends the development environment with AWS-specific context and tools.

Step 1: Prepare your environment

You'll need a supported AI coding agent, AWS CLI version 2.35.0 or later, and  uv  for the MCP proxy.
First, clone the project:
git clone https://github.com/sebasgao05/FinanzasPersonales.git
cd FinanzasPersonales

Create a dedicated branch:
git switch -c audit/ai-review

Verify your AWS CLI version:
aws --version

For authenticated AWS resource inspection, configure a profile with appropriate read-only permissions. I recommend using IAM Identity Center or short-lived credentials rather than long-lived access keys.

For example:
aws sso login --profile audit-readonly

aws sts get-caller-identity \
--profile audit-readonly

Step 2: Configure Agent Toolkit

AWS provides an interactive configuration command:
aws configure agent-toolkit

The wizard detects supported AI coding agents, installs AWS skills, and configures the AWS MCP Server connection.

Restart your coding agent after completing the setup.
For agents using the default AWS credential chain, select your audit profile before launching the agent:
export AWS_PROFILE=audit-readonly
export AWS_REGION=us-east-1

These commands use Bash syntax. On Windows, configure the equivalent environment variables in your terminal.

Step 3: Verify the connection

Open your AI coding agent and ask:
What AWS Regions are available? Use the configured AWS tools to answer.
Then open the repository and begin with a read-only review:
Analyze the architecture of this React and AWS Amplify Gen 2 project. Examine the backend definitions, authentication configuration, data models, and deployment files. Explain which AWS services are involved. Do not modify files or AWS resources.
Agent Toolkit isn't an automatic Well-Architected auditor. We're using an AI coding agent, AWS-specific tools, and the framework's principles together to support a structured review.

4. Auditing My Project Across Five Well-Architected Pillars

The AWS Well-Architected Framework provides architectural guidance across six pillars.
For this exercise, I'll focus on five: Security, Cost Optimization, Reliability, Performance Efficiency, and Operational Excellence. Sustainability is outside the scope of this initial review.
Rather than asking the AI to find everything wrong, I prefer targeted prompts.

Security

Review amplify/auth/resource.ts and amplify/data/resource.ts. Evaluate authentication settings, owner-based authorization, potential cross-user access risks, and IAM least privilege. Identify confirmed findings separately from items requiring verification in AWS. Do not expose credentials or personal financial data.
My repository already uses  allow.owner()  authorization rules in its data models.
That's a useful starting point, but I still need to verify how those rules behave in practice, including relationships between records owned by different users.

Cost Optimization

Analyze the infrastructure definitions and AWS resource tags. Identify potential cost drivers across Amplify Hosting, AppSync, DynamoDB, and Cognito. Recommend which billing metrics I should inspect. Do not estimate actual savings without billing evidence.
My project already includes cost allocation tags in  amplify/backend.ts .
The next question is whether those tags appear on the intended deployed resources and can support meaningful cost reporting.

Reliability

Review how financial data is stored and updated. Evaluate data consistency, backup and recovery requirements, accidental deletion risks, and error-handling behavior. Prioritize scenarios that could cause loss or corruption of financial records.

Performance Efficiency

Examine how the frontend queries AppSync and DynamoDB. Investigate pagination, repeated queries, response sizes, and potentially unnecessary data transfers. Identify what should be measured before recommending architectural changes.

Operational Excellence

Review package.json, the CI/CD configuration, automated tests, and deployment documentation. Identify gaps in build validation, monitoring, rollback procedures, and operational troubleshooting.
Each prompt should produce evidence: file paths, relevant code, verification steps, and clear explanations.

5. Turning AI Recommendations into an Improvement Plan

AI-generated findings aren't automatically confirmed problems.
I organize them into three categories:
  • Confirmed: Supported by code, configuration, or reproducible tests.
  • Needs verification: Requires inspection of deployed AWS resources or actual execution.
  • Optional improvement: Potentially beneficial, but not necessarily a defect.
For FinanzasPersonales, my initial review produced the following investigation plan:
Area
Observation
Priority
Security
MFA isn't explicitly configured in the authentication definition
High
Data integrity
Financial amounts use floating-point fields
High
Cost
Resource tags exist; deployed coverage needs verification
Medium
Reliability
Backup and recovery settings require inspection
High
Operations
The CI build script doesn't include the same TypeScript validation as the local build
Medium
These priorities are preliminary and based on potential impact, not a completed production risk assessment.

My rule is simple: never implement a recommendation just because an AI agent suggested it.
First, understand the evidence and expected impact.

6. Three Practical Improvements Worth Making

Here are three improvements I would investigate and implement in a controlled environment.
They are proposed changes, not claims about completed deployments.

Improvement 1: Strengthening Authentication

The current authentication definition is straightforward:
import { defineAuth } from '@aws-amplify/backend';

export const auth = defineAuth({
loginWith: {
email: true,
},
});
For an application containing personal financial information, I would consider enabling time-based one-time password authentication.

AWS Amplify Gen 2 supports this configuration:
import { defineAuth } from '@aws-amplify/backend';

export const auth = defineAuth({
loginWith: {
email: true,
},
multifactor: {
mode: 'OPTIONAL',
totp: true,
},
});
This enables optional TOTP-based MFA at the backend level. Users must still enroll, and the frontend must support the appropriate enrollment and sign-in flows.

Before deploying, I would test authentication, account recovery, and existing-user compatibility.
The important lesson isn't simply enable MFA. It's understanding how a security improvement affects the entire authentication experience.

Improvement 2: Handling Financial Values More Precisely

While examining  amplify/data/resource.ts , I noticed this definition:
amount: a.float().required(),

Binary floating-point arithmetic can introduce rounding behavior that is undesirable in financial calculations.

For example:
console.log(0.1 + 0.2);
// 0.30000000000000004

One alternative is storing monetary amounts as integers representing the smallest currency unit.
For example, where a currency uses two decimal places:
// Illustrative replacement for new data models
amountMinorUnits: a.integer().required(),
currency: a.string().required(),
A value of 125.50 would become 12550 minor units.

However, this isn't a simple field replacement. Existing records would require a controlled migration, and different currencies have different minor-unit conventions.

I would first identify every financial calculation, define currency-specific conversion rules, and create tests for rounding and reconciliation.

For an existing application, data migrations deserve just as much attention as new features.

Improvement 3: Improving CI Validation

The project currently defines separate build scripts:
{
"build": "tsc -b && vite build",
"build:ci": "vite build"
}

The local build explicitly performs TypeScript checking, while the CI-specific script doesn't.
I would align their validation behavior:
{
"build": "tsc -b && vite build",
"build:ci": "tsc -b && vite build"
}

Then run:
pnpm install --frozen-lockfile
pnpm lint
pnpm test
pnpm run build:ci
Finally, I would verify which script the actual deployment pipeline executes.

This is a relatively small change, but it reinforces an important operational principle: deployment pipelines should catch predictable problems before release.

7. Testing the Changes: Did We Actually Improve Anything?

An improvement isn't complete when the code changes. It's complete when we can demonstrate that the change behaves as intended.

For each proposed change, I want evidence.
Authentication: Can users enroll in MFA? Does login still work correctly? Are unauthorized access attempts rejected?
Financial precision: Do calculations produce expected results? Can old records be migrated without changing their financial meaning?
CI validation: Does a deliberate TypeScript error cause the build to fail? Do existing tests continue passing?

I would also inspect deployed resource configuration through AWS, using read-only access, to verify backup settings, deployed tags, and relevant monitoring.
Finally, I would document each improvement in a pull request containing:
  • The original observation and supporting evidence.
  • The change implemented.
  • Test results and any remaining limitations.
  • Rollback considerations and lessons learned.

8. Common Mistakes When Auditing with AI

During this process, there are several mistakes I want to avoid.
  • Giving the agent excessive permissions. Start with read-only AWS access. Explicitly review and authorize any resource-changing operation.
  • Assuming every recommendation is correct. AI output can be incomplete or inaccurate. Verify findings against source code, AWS documentation, and actual configuration.
  • Changing production directly. Use a dedicated branch and an isolated environment where possible. Back up existing data before migrations.
  • Optimizing without measurements. Cost, latency, and reliability claims need evidence. A theoretically better architecture isn't necessarily better for a small personal application.
  • Ignoring existing improvements. An audit should acknowledge what already works well, not only identify potential weaknesses.

9. Learn. Build. Audit. Improve. Repeat.

One of the most valuable things about revisiting FinanzasPersonales is recognizing how my perspective has changed.

When I built it in July, I focused on understanding AWS services and making them work together.
Today, I find myself asking different questions.

How can I validate this design? What happens when something fails? How do I protect users and their data? Can I demonstrate that a change actually improved the application?

These questions reflect another stage of learning.

The code I wrote in July represents what I knew at the time. Reviewing it today helps me understand what I've learned since then and where I can continue improving.

And that's exactly why I believe AI-assisted project reviews are worth exploring.

AI shouldn't replace architectural judgment. It should help us investigate more effectively, discover relevant AWS guidance, and ask better technical questions.

My challenge to the AWS community is simple: choose one project you built months ago, review it using what you know today, and implement one improvement you can verify.

You don't need to rebuild everything.

Sometimes, the best way to move forward as a developer is to revisit something you've already built.



Let's Discuss!

  1. When was the last time you revisited an old AWS project with the knowledge you have today?
  1. Which Well-Architected pillar would you audit first, and why?
  1. Have AI coding tools helped you identify improvements in an existing project?
I'd love to hear about your experiences and the improvements you've discovered.
Learn. Build. Audit. Improve. Repeat.
David Sebastián Barrera AWS Community Builder | Colombia



References

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article