Entrusting TSH with a swift one-week dash was all it took for our consumer to make sure AWS cloud value financial savings. Our staff considerably decreased month-to-month bills by addressing inefficiencies and implementing focused cleanup methods, showcasing the influence of agile and centered cloud value optimization.
Enterprise problem
In massive firms, conventional processes are sometimes unchallenged for years — “if it isn’t damaged, don’t repair it.” This mindset gives fertile floor for potential enhancements and price optimization. Our undertaking for a British firm (NDA) exemplifies this situation.
The important process concerned creating Unity-based construct artifacts transformed into Amazon Machine Photographs (AMIs). These AMIs are important for producing high-quality digital actuality (VR) and 360-degree rendered photos, aiding prospects in visualizing their future room designs.
Including new visible belongings required new builds and AMIs, however the automation didn’t clear up previous AMIs and snapshots. This oversight induced a gradual rise in month-to-month AWS prices, unnoticed because of the undertaking’s massive scale throughout 5 AWS accounts in numerous areas.
Our answer to cut back AWS Cloud prices
Preliminary evaluation
The DevOps staff initiated an in-depth evaluation of workloads, collaborating intently with the companion’s 3D improvement staff. This collaboration revealed gaps within the improvement pipeline and highlighted the significance of eventual cleanup actions.
Addressing Amazon Machine photos proliferation
After consulting the event staff, it was clear that retaining previous AMIs wasn’t normally mandatory, as rollback eventualities had been unusual. The consumer maintained 16 improvement and 4 manufacturing environments, creating over 300 month-to-month builds throughout three applied sciences (VR, HQ, 360). By November 2022, the consumer’s accounts hosted over 3500 AMIs with snapshots.
The picture creation course of is totally automated utilizing Jenkins CI alongside Packer and Ansible. Packer units up an occasion, which is then configured by an Ansible playbook, leading to an AMI and disk snapshot mixture. This complete course of sometimes takes round 2-3 hours.
To handle this, we applied a shell script that runs on the finish of each construct and deletes pointless AMIs.
The staff determined to retain solely the next:
- the final AMI plus the newly created one for non-production environments,
- the final 4 AMIs, plus the newly created one for manufacturing environments.
Fast win – this easy script decreased the variety of AMIs to 52 throughout all accounts.
Snapshot administration
Nonetheless, the preliminary answer solely partially resolved the issue as a result of technical limitations. Deregistering AMIs and deleting their snapshots couldn’t be dealt with in a single script.
To handle this, we created a Lambda operate to scan accounts for unattached snapshots and delete them.
Written in Python and deployed utilizing the Serverless Framework, this operate was scheduled to run every day, sustaining a low degree of unused snapshots.
Leveraging AMI copy performance
We knew that we may squeeze much more. Additional optimization revealed that builds with equivalent supply code had been triggered individually for every deployment surroundings, resulting in redundant AMIs.
By leveraging Packer’s AMI copy performance, AMIs may very well be created in a single account and accessed by others. This decreased the time and assets required for construct creation and enabled simultaneous deployment of visible options throughout completely different areas.

A one-time EBS cleansing allowed sustaining this value completely, because the consumer beforehand lacked mechanisms to cut back pointless snapshots.
Consequence – $32,000 financial savings!
The applied value optimizations confirmed vital financial savings.
For EBS-backed storage, prices had been decreased from roughly $14,000 to $4,000, saving over 70% on storage.
EC2 compute prices had been decreased from round $54,000 to $32,000, saving 50% on whole compute prices in comparison with the earlier months.
We achieved these outcomes by decreasing the variety of situations used for AMI creation, consolidating construct pipelines, and slicing down Jenkins employees required.
The strategic AWS Cloud value optimizations streamlined the workflow. They delivered substantial value financial savings for our companion, demonstrating the ability of customized and focused cloud value administration in complicated, big-scale options.
Scuffling with excessive AWS prices?
E book our AWS Price Minimize Dash and leverage the experience of over 130 AWS-certified professionals. Begin optimizing your cloud spending immediately!