Ends in
00
days
00
hrs
00
mins
00
secs
ENROLL NOW

🎁 $1.99 AIF-C01 eBook and 20% OFF on All Practice Exams, Video Courses, and eBooks!

Cost Allocation Tags on Amazon S3 Buckets and Using AWS Cost Explorer

Home » Others » Cost Allocation Tags on Amazon S3 Buckets and Using AWS Cost Explorer

Cost Allocation Tags on Amazon S3 Buckets and Using AWS Cost Explorer

Amazon Simple Storage Service (Amazon S3) is one of the most popular cloud-based storage solutions by AWS. Amazon S3 offers flexibility for various applications and is widely used across multiple use cases as it offers durability, availability, and cost-effectiveness. It allows users to store, manage, and securely access petabyte-scale data from the AWS cloud.  

By default, Amazon Billing shows how much data and cost is incurred for the cumulative storage cost and usage of all S3 buckets in each region. Because it is very easy to create multiple S3 buckets and upload objects to them, customers such as startups, small businesses, or large enterprises can quickly lose track of how much each of their Amazon S3 buckets costs. 

In this article, we will apply user-defined cost allocation tags to each Amazon S3 bucket and use AWS Cost Explorer to view the costs of each S3 bucket as well as use Cost and Usage Reports for a more detailed analysis.

First, we have to add tags for each Amazon S3 bucket. If you have a few buckets, you can do this manually. If you have several buckets, you might want to create a simple script that will use the AWS CLI to query all the bucket names and loop the command to apply a tag for each bucket. For this example, we have a few buckets to add a custom cost allocation tag – cost:BucketName.

  1. Go to the Amazon S3 management console and click on the bucket that you want to add a cost allocation tag.
  2. Click on the Properties tab and under Tags section, click Edit. Add the tag key cost:BucketName. Use the name of the bucket as the value for this tag.Cost Allocation Tags on Amazon S3 buckets and Using AWS Cost Explorer
  3. Click Save changes to apply the tags.Cost Allocation Tags on Amazon S3 buckets and Using AWS Cost Explorer
  4. After saving the tag changes, it may take up to 24 hours for the tags to appear on the Cost allocation tags of the Billing and Cost Management console. If this is your first time using the service, you may need to activate Cost Explorer.Cost Allocation Tags on Amazon S3 buckets and Using AWS Cost Explorer
  5. Once you have activated AWS Cost Explorer, it may take another 24 hours for the changes to take effect before you can use AWS Cost Explorer.
  6. Click on Cost allocation tags on the left pane and click the User-defined cost allocation tags Search for the tag name cost:BucketName.
  7. Select the Tag key and click Activate. This ensures that Cost Explorer and your AWS Cost and Usage Reports will include these tags.Cost Allocation Tags on Amazon S3 buckets and Using AWS Cost Explorer
  8. Now go to the AWS Cost Explorer management console to view the usage of each Bucket.
  9. Tutorials dojo strip
  10. Create a filter based on the Tag that you have activated from the cost allocation tags page. You should see each of the buckets and their corresponding costs.Cost Allocation Tags on Amazon S3 buckets and Using AWS Cost Explorer
  11. You can also set additional filters if you want the cost explorer to show a particular Service, Linked account, Region, etc.Cost Allocation Tags on Amazon S3 buckets and Using AWS Cost Explorer

With these cost allocation tags, you can also filter reports that were generated by the AWS Cost and Usage Reports. This way, users can have a more details analysis of how much data is stored on each bucket and how much each bucket costs.

 

Sources:

https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html

https://docs.aws.amazon.com/AmazonS3/latest/userguide/CostAllocTagging.html

https://docs.aws.amazon.com/AmazonS3/latest/userguide/BucketBilling.html

https://aws.amazon.com/aws-cost-management/aws-cost-and-usage-reporting/

Get 20% Off – Christmas Big Sale on All Practice Exams, Video Courses, and eBooks!

Tutorials Dojo portal

Learn AWS with our PlayCloud Hands-On Labs

Tutorials Dojo Exam Study Guide eBooks

tutorials dojo study guide eBook

FREE AWS Exam Readiness Digital Courses

FREE AWS, Azure, GCP Practice Test Samplers

Subscribe to our YouTube Channel

Tutorials Dojo YouTube Channel

Follow Us On Linkedin

Recent Posts

Written by: Kenneth Samonte

Kenneth is an AWS Architect & Linux System Administrator. He's a Red Hat Certified System Administrator, AWS Certified Solutions Architect Professional, and a VMware Certified Professional. He's also a registered Electronics Engineer and Cisco Certified Network Associate (CCNA). He enjoys exploring cloud platforms and administering Linux systems. When he's not busy, you’ll find him online playing League of Legends.

AWS, Azure, and GCP Certifications are consistently among the top-paying IT certifications in the world, considering that most companies have now shifted to the cloud. Earn over $150,000 per year with an AWS, Azure, or GCP certification!

Follow us on LinkedIn, YouTube, Facebook, or join our Slack study group. More importantly, answer as many practice exams as you can to help increase your chances of passing your certification exams on your first try!

View Our AWS, Azure, and GCP Exam Reviewers Check out our FREE courses

Our Community

~98%
passing rate
Around 95-98% of our students pass the AWS Certification exams after training with our courses.
200k+
students
Over 200k enrollees choose Tutorials Dojo in preparing for their AWS Certification exams.
~4.8
ratings
Our courses are highly rated by our enrollees from all over the world.

What our students say about us?