Skip to content
All projects

Com2us Platform · FinOps

Dragon Sky FinOps: 62% lower infrastructure cost

Linked revenue metrics with infrastructure cost and found unused resources automatically every day with Python, cutting infrastructure cost by up to 62%.

Role
Cloud Engineer · Main engineer
Period
Feb 2023 – Feb 2026
Cloud
Azure
Scale
10 servers · 5 databases
Key tech
Azure · Python · Billing monitoring
- 62 %
Maximum infrastructure cost reduction
10
Servers
5
Databases

At a glance

TimeRevenueInfrastructure costRevenue and cost monitored togetherUnused resources flaggedUp to -62%
Infrastructure cost fell by up to 62%.

Problem

Infrastructure cost was high relative to game revenue, which hurt profitability.

Approach

Revenue metrics and infrastructure cost were monitored together. Python found unused resources across every cloud automatically each day.

Result

Infrastructure cost fell by up to 62%.

Up close

Runs every dayPythonResources on every cloudUnused resources to clean up
The result becomes a cleanup list that stops cost leaks.

What this code does: AWS code that finds unattached IPs and security groups. This is code from a related public repository, not the production code of this project.

    for account, region, client in provider.regional("ec2"):
        base = {"cloud": "AWS", "project": account.name, "project_id": account.account_id, "region": region}
        for address in client.describe_addresses()["Addresses"]:
            if not address.get("InstanceId") and not address.get("AssociationId"):
                label = (
                    f"{_name(address)} ({address.get('AllocationId')} / {address.get('PublicIp')})".strip()
                )
                records.append(UnusedResource(resource_type="IP", resource=label, **base))
        for group in client.describe_security_groups()["SecurityGroups"]:
            if _excluded(group["GroupName"], rules):
                continue
            used = client.describe_network_interfaces(
                Filters=[{"Name": "group-id", "Values": [group["GroupId"]]}]
            )["NetworkInterfaces"]
            if not used:

What I learned

Seeing cost next to revenue made it easier to decide which resources affect profitability.

What I would improve

Next, I want a flow from detection through cleanup approval, so cost leaks close faster.

Open to work · Cloud infrastructure and security