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
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
Finding unused resources (related public repository pf-05)
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.