Ravindra BagaleCourses & study guides मराठी Track your progress

Guides

AWS Bill कमी करा: Practical DevOps Checklist

Billing alarm, tags, orphans साफ, NAT/ALB, right-size, monthly Cost Explorer.

Friends, the bill is a DevOps signal — idle resources talk. Chala mitrano — alarm first, delete orphans second, right-size third.

Quick answer

Hold this vertical picture:

  1. alarm.
  2. tags.
  3. stopped EC2 + EBS.
  4. ALB/NAT/snaps.
  5. right-size; S3; review.

Language: English · मराठी · हिंदी

Billing alarmKnow early Find idleEC2/EBS/ALB Right-sizeSmaller types Lifecycle & NATQuiet costs Monthly reviewKeep it gone
AWS bill checklist

Checklist का

bill drift.

Why: hero cleanup परत येते. What: alarm→orphans→size→review. How: finance threshold.

Example 1: Billing alarm

Type this:

printf '%s\n' 'aws cloudwatch put-metric-alarm --alarm-name billing-100-usd --metric-name EstimatedCharges --namespace AWS/Billing --statistic Maximum --period 21600 --evaluation-periods 1 --threshold 100 --comparison-operator GreaterThanThreshold --dimensions Name=Currency,Value=USD --contact-groups ...'

You will see:

aws cloudwatch put-metric-alarm --alarm-name billing-100-usd --metric-name EstimatedCharges --namespace AWS/Billing --statistic Maximum --period 21600 --evaluation-periods 1 --threshold 100 --comparison-operator GreaterThanThreshold --dimensions Name=Currency,Value=USD --contact-groups ...

What it means: us-east-1 billing metric — set an INR-aware threshold your team agrees.

Example 7: Tag for cost

Type this:

printf '%s\n' 'Environment=dev, Owner=payments, Project=checkout'

You will see:

Environment=dev, Owner=payments, Project=checkout

What it means: Without tags Cost Explorer is a fog.

Example 10: Budget in INR talk

Type this:

printf '%s\n' 'Agree a monthly budget with finance; alarm at 50 percent and 80 percent'

You will see:

Agree a monthly budget with finance; alarm at 50 percent and 80 percent

What it means: Startups in Bengaluru do this weekly in stand-up.

Concept 1: Idle

stopped ≠ free.

Why: EBS/snaps. What: describe-. How:* ticket ने delete.

Example 2: Find stopped vs unused

Type this:

printf '%s\n' 'aws ec2 describe-instances --filters Name=instance-state-name,Values=stopped --query "Reservations[].Instances[].InstanceId"'

You will see:

aws ec2 describe-instances --filters Name=instance-state-name,Values=stopped --query "Reservations[].Instances[].InstanceId"

What it means: Stopped instances still cost for EBS volumes.

Example 3: Unattached EBS

Type this:

printf '%s\n' 'aws ec2 describe-volumes --filters Name=status,Values=available --query "Volumes[].VolumeId"'

You will see:

aws ec2 describe-volumes --filters Name=status,Values=available --query "Volumes[].VolumeId"

What it means: available = not attached — common orphan bill.

Example 4: Old snapshots

Type this:

printf '%s\n' 'aws ec2 describe-snapshots --owner-ids self --query "Snapshots[?StartTime<=\`2024-01-01\`].SnapshotId"'

You will see:

aws ec2 describe-snapshots --owner-ids self --query "Snapshots[?StartTime<=\`2024-01-01\`].SnapshotId"

What it means: Keep restore points you need; delete ancient labs.

Concept 2: Network

ALB/NAT idle bill.

Why: zero traffic ALB. What: list; share NAT. How: gp3.

Example 5: Idle load balancers

Type this:

printf '%s\n' 'aws elbv2 describe-load-balancers --query "LoadBalancers[].LoadBalancerArn"'

You will see:

aws elbv2 describe-load-balancers --query "LoadBalancers[].LoadBalancerArn"

What it means: ALB/NLB cost daily even with zero traffic — Flipkart labs forget this.

Example 6: Right-size hint

Type this:

printf '%s\n' 'If CPU < 10 percent for two weeks, try a smaller instance type in next maintenance'

You will see:

If CPU < 10 percent for two weeks, try a smaller instance type in next maintenance

What it means: Right-size beats buying bigger "just in case".

Example 11: gp3 vs gp2

Type this:

printf '%s\n' 'Prefer gp3 volumes when migrating — often cheaper for same baseline'

You will see:

Prefer gp3 volumes when migrating — often cheaper for same baseline

What it means: Easy win during Terraform refactors.

Concept 3: Tags/rhythm

Cost Explorer.

Why: untagged. What: Environment tags; Monday. How: S3 lifecycle.

Example 8: S3 lifecycle

Type this:

printf '%s\n' 'Move rare logs to Glacier Instant Retrieval or Deep Archive after N days'

You will see:

Move rare logs to Glacier Instant Retrieval or Deep Archive after N days

What it means: Hot S3 for forever logs burns INR.

Example 9: NAT gateway watch

Type this:

printf '%s\n' 'NAT Gateway hourly + data processing — share or remove unused NATs in idle VPCs'

You will see:

NAT Gateway hourly + data processing — share or remove unused NATs in idle VPCs

What it means: Quiet killer on small AWS accounts.

Example 12: Monthly review ritual

Type this:

printf '%s\n' 'Calendar: first Monday — Cost Explorer by service + kill orphans checklist'

You will see:

Calendar: first Monday — Cost Explorer by service + kill orphans checklist

What it means: Ritual beats one heroic cleanup.

Bill checklist card

1 alarm 2 tags 3 orphans 4 ALB/NAT 5 right-size 6 S3 7 monthly

Suppose: no alarm

us-east-1 billing metric.

Suppose: dev=prod cost

tags/NAT.

Ravindra Bagale's Tip

At startups and Infosys shared labs, the surprise bill is usually NAT + forgotten ALB + unattached EBS. Reviewers ask for a monthly checklist.

Check yourself (quiz)

Q1. first?

alarm

Q2. stopped cost?

EBS yes

Q3. available vol?

orphan

Q4. quiet?

NAT/ALB

Q5. tags?

ownership

Q6. ritual?

monthly

Reading tracking

Mark this guide when you finish. Your browser remembers it on this device.

alarm → orphans → right-size → review. Did you understand? Let us try it once more.

Frequently asked questions

Is stopped free?

Instance hours stop; EBS continues.

Where is billing metric?

us-east-1.

Savings Plans?

Later optimization after orphans die.

Spot instances?

Great for fault-tolerant labs/jobs.

Who owns the bill?

Tagged Owner + finance partner.

Terraform link?

Destroy unused stacks; tag defaults in modules.