title: Export a DynamoDB table as CSV through AWS CLI (without using pipeline)
body: <p>I am new to AWS CLI and I am trying to export my DynamoDB table in CSV format so that I can import it directly into PostgreSQL. Is there a way to do that using AWS CLI?</p>
  <p>I came across this command: <code>aws dynamodb scan --table-name &lt;table-name&gt;</code> - but this does not provide an option of a CSV export.</p>
  <p>With this command, I can see the output in my terminal but I am not sure how to write it into a file.</p>