Next: , Previous: , Up: Bucket Index HTML  


A.4.4 Bucket Projects List

This code uses the s3-bucket-url result to obtain the list of projects in the bucket. It does this by calling the AWS S3 high-level command ls and then removing the ‘PRE’ string in each result. The result that is returned is a single string that can be separated into individual links by breaking the string on spaces.

/usr/local/bin/aws s3 ls ${bucket} | sed -ne 's/^.*PRE //p'