By the Director, TechWorld Solution
Cloud cost is often treated as "the finance team's problem". But developers make most of the decisions that drive the bill: instance sizes, storage choices, log settings and whether a test environment stays up all weekend.
Here are five practical AWS cost optimization techniques you can try this week, using tools you already have. None of them need a big project.
1. Find unattached EBS volumes
When an EC2 instance is terminated, its volumes don't always go with it. Unattached volumes keep costing money.
You can list them with the AWS CLI:
aws ec2 describe-volumes \ --filters Name = status,Values=available \ --query "Volumes[].{ID:VolumeId,Size:Size,Created:CreateTime}" \ --output table
Enter fullscreen mode
Exit fullscreen mode
Check each one with its owner, take a snapshot if you're unsure, then delete what isn't needed.
2. Set log retention on CloudWatch log groups
By default, CloudWatch log groups can keep logs indefinitely.…