Created
June 26, 2017 01:05
-
-
Save gcanales75/f026f2f8c9ef0058d6bfb51efddb1271 to your computer and use it in GitHub Desktop.
Obtiene el espacio utilizado en GB para un listado de buckets de S3 en una cuenta
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $buckets = (Get-S3Bucket).BucketName | |
| Foreach ($bucket in $buckets) { | |
| $bucket | |
| $s3foldersize = ((Get-S3object -BucketName $bucket).size | Measure-Object -Sum).sum | |
| $foldersizegb = ($s3foldersize / 1073741824) | |
| $foldersizegb | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment