S3 Get List of Objects by Extension

Amazon S3 (Simple Storage Service) is an online storage service by Amazon. You can use this service to store any kind of data on the internet, and retrieve it at anytime, from anywhere. In Amazon S3, data is stored in buckets. These buckets are like containers that can hold any number of objects.

If you have uploaded a number of objects in a particular bucket, you can easily get the list of all objects that have a particular extension. Apart from this, you can also use a variety of search criteria to get the exact piece of information that you are looking for.

Configure the action, and select the required AWS connection. First, you need to specify the name of the bucket under which the objects search needs to be performed. Next, you need to specify the type of extension. You can optionally specify other parameters for your search, such as:

Delimiter: This is character that is used to group keys.

Marker: This is used to specify the keys to start when listing objects in a bucket. If specified, the response will include only those records that are beyond this marker.

Prefix: This helps in searching only that objects that starts with the specified prefix.   

Max Keys: This sets the maximum limit to the number of keys that would be returned in the response.

s3-get-list-of-objects-by-extension

Once you have entered all the required details, click on ‘Done’ and run the workflow. This will return the list of all the objects that matches your search query.

Output:
  • output-arrow aws-128 S3 Get List of Objects by Extension
    • left-triangle Contents array
      • left-triangle Key string
      • left-triangle ETag string
      • left-triangle Size string