title: Lambda function exclude .csv.metadata files from the output
body: <p>I have a Lambda function that executing Athena query and exporting the output in csv file to S3 bucket.
  Now in my S3 bucket I'm getting 2 files <strong>.csv</strong> and <strong>.csv.metadata</strong></p>
  <p>My questions is how can I exclude the .csv.metadata files?</p>
  <pre><code>import boto3
  
  
  def lambda_handler(event, context):
      query_1 =   &quot;&lt;MY-QUERY-HERE&gt;&quot;
                   
      database = &quot;&lt;MY-DB-HERE&gt;&quot;
      s3_output = &quot;MY-S3-BUCKET&quot;
  
      client = boto3.client('athena')
  
      response = client.start_query_execution(QueryString = query_1,
                                          QueryExecutionContext={
                                              'Database': database
                                          },
                                          ResultConfiguration={
                                              'OutputLocation': '&lt;MY-S3-BUCKET&gt;'
                                          }
                                          )
      return response
  </code></pre>