Issue
I am currently on my free tier. I followed the guide to hosting a wordpress website while remaining in the free tier. I started a Linux t2.micro instance and used one Elastic IP. Surprisingly I got this bill:
It didn't even reach 730 Hrs for EC2 which is the monthly limit. I stopped the instance, and then terminated it so that any other charges don't occur. It asked me to release the Elastic IP address before terminating, which I did. Now there's no Elastic IP address or any machine instance.
But today I opened up the billing dashboard and saw that I was charged $0.5 for $0.005 per Elastic IP address not attached to a running instance per hour (prorated). And after a while it's this now.
How do I stop it? Plus why was I charged while I was still in my free tier.
Solution
This is because of various reasons. Elastic IP charge is calculated on hourly basis. Only one elastic IP is free of cost. If you have created an elastic IP but it is not attached to any EC2 instance still it will cost you on an hourly basis.
So reason you got charged because of one of these reasons,
- You may create multiple elastic IPs (only first one is free that too if is allocated)
- You may create one elastic IP but didn't allocate it to an EC2 instance for few hours
- You may not disassociate elastic IP once the instance terminated (I could see you did it properly so ignore this)
Different pricing of elastic IP,
- $0.00 for one Elastic IP address associated with a running instance
- $0.005 per additional Elastic IP address associated with a running instance per hour on a pro rata basis
- $0.005 per Elastic IP address not associated with a running instance per hour on a pro rata basis
- $0.00 per Elastic IP address remap for the first 100 remaps per month
- $0.10 per Elastic IP address remap for additional remaps over 100 per month
Answered By - Vijayanath Viswanathan