0

I have some images in an s3 bucket where the filenames follow the format.

  • Photo_1_{cod_product}.JPG - ex: Photo_1_20215.JPG
  • Photo_2_{cod_product}.JPG - ex: Photo_2_20215.JPG
  • Photo_3_{cod_product}.JPG - ex: Photo_3_20215.JPG

In other words, in the example, I have 3 images of the same product, and I would like to download the 3 images at once in order not to download 3

I would like to download the files using a snippet of the filename.

Ex: Download all files with product code 20215

I found no reference on this possibility.

I'm using Java (11) with Spring Boot (2.6.0) and aws-java-sdk version (1.11.1000)

Ger
  • 583
  • 2
  • 13
  • 35
  • Check out [TransferManager](https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/transfer/TransferManager.html). – shmosel Dec 30 '21 at 23:30
  • https://stackoverflow.com/questions/36215713/how-to-use-aws-cli-to-only-copy-files-in-s3-bucket-that-match-a-given-string-pat – Raj Dec 30 '21 at 23:35
  • @LeninRajRajasekaran I verified that the example presented is using AWS CLI instructions, would the AWS SDK Java have the same capability? – Ger Dec 30 '21 at 23:50
  • No, download all 3 individually. – jarmod Dec 30 '21 at 23:56

0 Answers0