Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

S3 bucket

I have abc_trigger_ddd_dfffd.txt like files in my s3bucket.
I wan t to get count of files have _trigger_ word in bucket using python

Thanks in Advance

1 Community Answers

Matillion Agent  

Ian Funnell —

Hi Vipinkumar,

I would recommend you use the boto3 API like this:

import boto3
s3 = boto3.resource('s3')
bucket = s3.Bucket('your-bucket')

.. and then use the bucket’s objects collection to either loop or count according to your pattern.

Best regards,

Post Your Community Answer

To add an answer please login