how to get the bucket cost using cost explorer2 min read
S3( simple storage Service) is object storage provided by AWS. S3 even helps to host a static website. S3 support to store any kind of data. It’s highly scalable and secure. Security depends all on how the cloud administrator has defined the Access control.
If you are a continuous user who pushes your data to the s3 bucket, then you might have noticed the size of the s3 buckets also keeps increasing. So it’s always a better idea to archive the data which are not frequently used. S3 provides to create some rules which will push to data to AWS glacier based on the rules defined or even you move those data manually if you are preferred to go with some kind of automation rules.
As a cloud administrator is always responsible for the billing of a company AWS account, and he is the first point of contact for management for all the billing related queries. But for a cloud administrator from the AWS billing report, he can only get how much resources are utilized separated by the services on used regions. But he always preferred to have a break of all his resources.
In this article, we show you how to get the bucket cost using cost explorer.
Step 1: log in to aws console.
Step 2: Select S3 from the aws services list.
Step 3: Select the bucket you want to get the cost.
Step 4: Select the tag from the properties TAB.
Step 5: Create a tag key and value. In my case, I’m creating a key called s3key.
Step 6: you can use the same or different tag for which all buckets you need to monitor the cost.
Step 7: Now navigate to the billing dashboard and select cost allocation tags from the left sidebar.
Step 8: Choose the tag which you have created and click on the activate button.
Step 9: once you activated the tag, it will take 24 hrs to update the tag in cost explorer.
Step 10: Navigate to cost explorer service and select cost explorer.
Step 11: filter using the s3 service and s3 key and tag value. Once you filtered you will be m getting the cost for buckets which have tagged.
NOTE: cost explorer starts calculating the cost from the day when the cost allocation tags are activated. You can tweak the report by addinf different options such as forecast, groupby etc.
Happy learning 🙂