title: Dynamically read changing filename key
body: <p>I have <code>parquet</code> files that are generated via <code>spark</code> and the filename (key) in <code>s3</code> will always change post ETL job.  This is the code I use to read the <code>parquet</code> files via <code>boto3</code> in <code>sagemaker</code>.  Looking for a way to dynamically read the <code>S3</code> filename (key) since hard-coding the key will fail the read since it changes every time.  How can this be achieved?  Thanks.</p>
  
  <pre class="lang-py prettyprint-override"><code>filename = "datasets/randomnumbergenerator.parquet"
  bucketName = "bucket-name"
  
  buffer = io.BytesIO()
  client = boto3.resource("s3")
  obj = client.Object(bucketName, filename)
  obj.download_fileobj(buffer)
  df = pd.read_parquet(buffer)
  </code></pre>