Menu

1 / 2

5 AWS Cost Optimization Techniques Every Developer Can Run This Week

DEV Community: aws·TechWorld Solution·about 2 hours ago
#ty1lfEsd
#devtoaws#devto#dev#cost#volumes
Long article (725 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.