Streamlining Your AWS Account
By David Fries
An AWS account that grew by hand eventually becomes difficult to reason about. Resources get created for one purpose and then quietly outlive it, security groups drift, and nobody is entirely certain what would break if a given thing were deleted. Meanwhile the bill goes up for reasons that are never obvious from the console.
Infrastructure as code is the fix. Rather than clicking through the console and hoping somebody wrote it down, you define the infrastructure in code and let the tooling reconcile reality against that definition.
What infrastructure as code changes
Defining your AWS environment in code with a tool like Pulumi gives you four things the console cannot offer.
- A reviewable record. Every change arrives as a diff, so you can see what will happen before it happens and who changed what after the fact.
- Reproducibility. The same definition builds the same environment in a second region or an entirely fresh account, which turns disaster recovery from a document somebody wrote once into a command you can actually run.
- Cost control. Because resources are declared, the unused ones are visible rather than buried, and right-sizing or cleanup becomes a reviewable change instead of an archaeological dig.
- Consistent security. Encryption, logging, tagging and access policy are all enforced in the definition, rather than depending on whoever built each resource remembering to apply them.
Pulumi lets you write these definitions in TypeScript or Python rather than in a bespoke configuration language, which means loops, conditionals, real tests, and whatever tooling your developers already know.
What to monitor once it is in code
Codifying the infrastructure is only half the job; knowing what it is actually doing is the other half. Two things are worth tracking at minimum.
- Spend, broken out by tag and by service, with alerting on unexpected increases rather than an end-of-month surprise nobody can explain.
- Performance — CPU, memory and latency on the resources that matter — so that bottlenecks surface before your users are the ones reporting them.
Tagging enforced through infrastructure as code is what makes the cost side work at all, because untagged resources cannot be attributed to anything, and spend nobody can attribute is spend nobody ever cleans up.
How Fries Consulting can help
We work with non-profits, schools, and small businesses to:
- Stand up a Pulumi project structured around your environment rather than a tutorial’s
- Bring existing AWS resources under code management without rebuilding them
- Apply consistent security, tagging, and cost policy across the account
- Set up the monitoring and cost alerting that makes the whole thing observable
If this sounds like something that interests you, please feel free to reach out at the contact form to see how Fries Consulting can help with your AWS and infrastructure as code needs.