Counting your S3 buckets the lazy way
As a programmer, counting a bunch of items on a webpage is a quick task when you automate it. In this tiny post I'll explain how to count your S3 buckets with a single line of jQuery.
So before we can get started head to the AWS console and open S3.
Open your developer console and go the console tab and locate
<top frame>. That is a dropdown, click it and select
Now run the following bit of jQuery:
$('#bucket-list-view tbody tr').length;
This returns the number of buckets on your account.
Open your developer console and head to the elements tab. Locate the iframe directly under the body element.
Now open that iframe in the new tab and open your developer console again. Go to the console tab and run the bit of jQuery mentioned above.
These little things make my line of work just that extra bit more fun.